mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
if there's only one deck, load it, not browser
This commit is contained in:
parent
abdaf9e9df
commit
5c3f538d07
2 changed files with 4 additions and 2 deletions
|
@ -67,7 +67,9 @@ class AnkiQt(QMainWindow):
|
|||
self.restoreState(self.config['mainWindowState'])
|
||||
# load deck
|
||||
ui.splash.update()
|
||||
if self.config['loadLastDeck'] and not self.maybeLoadLastDeck(args):
|
||||
if (self.config['loadLastDeck'] or
|
||||
len(self.config['recentDeckPaths']) == 1) and \
|
||||
not self.maybeLoadLastDeck(args):
|
||||
self.setEnabled(True)
|
||||
self.moveToState("auto")
|
||||
# check for updates
|
||||
|
|
|
@ -566,7 +566,7 @@
|
|||
<item row="8" column="0" >
|
||||
<widget class="QCheckBox" name="openLastDeck" >
|
||||
<property name="text" >
|
||||
<string>Open last deck instead of deck browser</string>
|
||||
<string>Open last deck even when multiple decks available</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue