mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
don't remove deck from list until deletion confirmed
This commit is contained in:
parent
73bc481236
commit
e67e3320a9
1 changed files with 1 additions and 1 deletions
|
@ -1162,8 +1162,8 @@ later by clicking on the left-pointing arrow on the toolbar.
|
|||
elif idx == 2:
|
||||
# delete
|
||||
deck = self.browserDecks[c]['path']
|
||||
del self.browserDecks[c]
|
||||
if ui.utils.askUser(_("Delete %s?") % os.path.basename(deck)):
|
||||
del self.browserDecks[c]
|
||||
os.unlink(deck)
|
||||
self.config['recentDeckPaths'].remove(deck)
|
||||
self.showDeckBrowser()
|
||||
|
|
Loading…
Reference in a new issue