mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
default to deck browser if decks > 1
This commit is contained in:
parent
0085c9fc6c
commit
aca30de49e
1 changed files with 5 additions and 2 deletions
|
@ -191,7 +191,10 @@ Are you sure?"""):
|
|||
self.raise_()
|
||||
# maybe sync (will load DB)
|
||||
self.onSync(auto=True)
|
||||
# skip the reset step; open overview directly
|
||||
# load overview if a single deck, otherwise deck list
|
||||
if self.col.decks.count() > 1:
|
||||
self.moveToState("deckBrowser")
|
||||
else:
|
||||
self.moveToState("overview")
|
||||
|
||||
def unloadProfile(self):
|
||||
|
|
Loading…
Reference in a new issue