From cfce5c8500f58a3da40e5bcf8d44ac391761d696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 17:42:52 +0200 Subject: [PATCH] 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. --- offlineimap/ui/Curses.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/offlineimap/ui/Curses.py b/offlineimap/ui/Curses.py index b25f873..03f4d26 100644 --- a/offlineimap/ui/Curses.py +++ b/offlineimap/ui/Curses.py @@ -608,7 +608,9 @@ class Blinkenlights(UIBase, CursesUtil): self.logwin.idlok(True) # needed for scrollok below self.logwin.scrollok(True) # scroll window when too many lines added 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 index = 0 self.hotkeys = []