Merge pull request #667 from BlueGreenMagick/refresh-deck-list

refresh deck list when adding deck via deckchooser
This commit is contained in:
Damien Elmes 2020-06-12 09:12:51 +10:00 committed by GitHub
commit 2845941a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,4 +151,7 @@ class StudyDeck(QDialog):
self.name = self.mw.col.decks.name(did)
# make sure we clean up reset hook when manually exiting
gui_hooks.state_did_reset.remove(self.onReset)
if self.mw.state == "deckBrowser":
self.mw.deckBrowser.refresh()
gui_hooks.sidebar_should_refresh_decks()
QDialog.accept(self)