if there's only one deck, load it, not browser

This commit is contained in:
Damien Elmes 2009-06-04 09:46:06 +09:00
parent abdaf9e9df
commit 5c3f538d07
2 changed files with 4 additions and 2 deletions

View file

@ -67,7 +67,9 @@ class AnkiQt(QMainWindow):
self.restoreState(self.config['mainWindowState']) self.restoreState(self.config['mainWindowState'])
# load deck # load deck
ui.splash.update() 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.setEnabled(True)
self.moveToState("auto") self.moveToState("auto")
# check for updates # check for updates

View file

@ -566,7 +566,7 @@
<item row="8" column="0" > <item row="8" column="0" >
<widget class="QCheckBox" name="openLastDeck" > <widget class="QCheckBox" name="openLastDeck" >
<property name="text" > <property name="text" >
<string>Open last deck instead of deck browser</string> <string>Open last deck even when multiple decks available</string>
</property> </property>
</widget> </widget>
</item> </item>