Remove the duplicated sort_by function in the MUCList
This commit is contained in:
parent
4bc215806b
commit
c3f822e7b2
1 changed files with 6 additions and 17 deletions
23
src/tabs.py
23
src/tabs.py
|
@ -2788,24 +2788,13 @@ class MucListTab(Tab):
|
|||
|
||||
def sort_by(self):
|
||||
if self.list_header.get_order():
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
|
||||
self.list_header.set_order(False)
|
||||
self.list_header.refresh()
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
|
||||
self.list_header.set_order(False)
|
||||
self.list_header.refresh()
|
||||
else:
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
|
||||
self.list_header.set_order(True)
|
||||
self.list_header.refresh()
|
||||
curses.doupdate()
|
||||
|
||||
def sort_by(self):
|
||||
if self.list_header.get_order():
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
|
||||
self.list_header.set_order(False)
|
||||
self.list_header.refresh()
|
||||
else:
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
|
||||
self.list_header.set_order(True)
|
||||
self.list_header.refresh()
|
||||
self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
|
||||
self.list_header.set_order(True)
|
||||
self.list_header.refresh()
|
||||
curses.doupdate()
|
||||
|
||||
def join_selected(self):
|
||||
|
|
Loading…
Reference in a new issue