mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
load last deck if args set
This commit is contained in:
parent
5e7769bfed
commit
1001d6b7af
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ 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'] or
|
if (args or self.config['loadLastDeck'] or
|
||||||
len(self.config['recentDeckPaths']) == 1) and \
|
len(self.config['recentDeckPaths']) == 1) and \
|
||||||
not self.maybeLoadLastDeck(args):
|
not self.maybeLoadLastDeck(args):
|
||||||
self.setEnabled(True)
|
self.setEnabled(True)
|
||||||
|
|
Loading…
Reference in a new issue