BUG: Do not sort accounts

Is not possible to sort acounts on this way. We need make the comparison
using their names, not their keys.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 17:42:52 +02:00
parent 6bf45233bb
commit cfce5c8500

View File

@ -608,7 +608,9 @@ class Blinkenlights(UIBase, CursesUtil):
self.logwin.idlok(True) # needed for scrollok below self.logwin.idlok(True) # needed for scrollok below
self.logwin.scrollok(True) # scroll window when too many lines added self.logwin.scrollok(True) # scroll window when too many lines added
self.draw_logwin() self.draw_logwin()
self.accounts = reversed(sorted(self.accframes.keys()))
# TODO: Sort the accounts using their name
self.accounts = self.accframes.keys()
pos = self.height - 1 pos = self.height - 1
index = 0 index = 0
self.hotkeys = [] self.hotkeys = []