mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
only reshow the deck browser on change
This commit is contained in:
parent
09b3016462
commit
dbe6809ebb
1 changed files with 2 additions and 2 deletions
|
@ -1255,7 +1255,7 @@ later by using File>Close.
|
||||||
help="DeckBrowser"):
|
help="DeckBrowser"):
|
||||||
self.config['recentDeckPaths'].remove(self.browserDecks[c]['path'])
|
self.config['recentDeckPaths'].remove(self.browserDecks[c]['path'])
|
||||||
del self.browserDecks[c]
|
del self.browserDecks[c]
|
||||||
self.showDeckBrowser()
|
self.showDeckBrowser()
|
||||||
|
|
||||||
def onDeckBrowserDelete(self, c):
|
def onDeckBrowserDelete(self, c):
|
||||||
deck = self.browserDecks[c]['path']
|
deck = self.browserDecks[c]['path']
|
||||||
|
@ -1263,7 +1263,7 @@ later by using File>Close.
|
||||||
del self.browserDecks[c]
|
del self.browserDecks[c]
|
||||||
os.unlink(deck)
|
os.unlink(deck)
|
||||||
self.config['recentDeckPaths'].remove(deck)
|
self.config['recentDeckPaths'].remove(deck)
|
||||||
self.showDeckBrowser()
|
self.showDeckBrowser()
|
||||||
|
|
||||||
# Opening and closing the app
|
# Opening and closing the app
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue