mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
hide missing decks when drawing recent decks list
This commit is contained in:
parent
38b1d3b48a
commit
1621092741
1 changed files with 2 additions and 1 deletions
|
@ -767,7 +767,8 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
||||||
self.switchDecks = (
|
self.switchDecks = (
|
||||||
[(os.path.basename(x).replace(".anki", ""), x)
|
[(os.path.basename(x).replace(".anki", ""), x)
|
||||||
for x in self.config['recentDeckPaths']
|
for x in self.config['recentDeckPaths']
|
||||||
if not self.deck or self.deck.path != x])
|
if not self.deck or self.deck.path != x and
|
||||||
|
os.path.exists(x)])
|
||||||
self.switchDecks.sort()
|
self.switchDecks.sort()
|
||||||
combo.addItems(QStringList([x[0] for x in self.switchDecks]))
|
combo.addItems(QStringList([x[0] for x in self.switchDecks]))
|
||||||
self.connect(combo, SIGNAL("activated(int)"),
|
self.connect(combo, SIGNAL("activated(int)"),
|
||||||
|
|
Loading…
Reference in a new issue