mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
close all windows on sync
This commit is contained in:
parent
887d95203d
commit
8b538ee20f
1 changed files with 2 additions and 0 deletions
|
@ -1162,6 +1162,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
||||||
self.sourcesToCheck = []
|
self.sourcesToCheck = []
|
||||||
self.deck = None
|
self.deck = None
|
||||||
self.loadAfterSync = reload
|
self.loadAfterSync = reload
|
||||||
|
# hide all deck-associated dialogs
|
||||||
|
ui.dialogs.closeAll()
|
||||||
# bug triggered by preferences dialog - underlying c++ widgets are not
|
# bug triggered by preferences dialog - underlying c++ widgets are not
|
||||||
# garbage collected until the middle of the child thread
|
# garbage collected until the middle of the child thread
|
||||||
import gc; gc.collect()
|
import gc; gc.collect()
|
||||||
|
|
Loading…
Reference in a new issue