refresh deck list when adding deck via deckchooser

This commit is contained in:
BlueGreenMagick 2020-06-11 13:00:10 +09:00
parent 816cec4a58
commit 20da11f57e

View File

@ -150,4 +150,7 @@ class StudyDeck(QDialog):
self.name = n
# 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)