From 2a0bc15a0b1aa785ccc2d2f41b331bdd73064f78 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 9 Feb 2021 09:54:46 +1000 Subject: [PATCH] move flags above card state; change stage label for consistency --- qt/aqt/sidebar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index 412dfd3c1..e0044ef6d 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -36,10 +36,10 @@ class SidebarItemType(Enum): SAVED_SEARCH = auto() TODAY_ROOT = auto() TODAY = auto() - CARD_STATE_ROOT = auto() - CARD_STATE = auto() FLAG_ROOT = auto() FLAG = auto() + CARD_STATE_ROOT = auto() + CARD_STATE = auto() DECK_ROOT = auto() DECK = auto() NOTETYPE_ROOT = auto() @@ -62,8 +62,8 @@ class SidebarStage(Enum): ROOT = auto() SAVED_SEARCHES = auto() TODAY = auto() - SCHEDULING = auto() FLAGS = auto() + CARD_STATE = auto() DECKS = auto() NOTETYPES = auto() TAGS = auto() @@ -515,7 +515,7 @@ class SidebarTreeView(QTreeView): def _build_stage(self, root: SidebarItem, stage: SidebarStage) -> None: if stage is SidebarStage.SAVED_SEARCHES: self._saved_searches_tree(root) - elif stage is SidebarStage.SCHEDULING: + elif stage is SidebarStage.CARD_STATE: self._card_state_tree(root) elif stage is SidebarStage.TODAY: self._today_tree(root)