mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
make sure we close all windows prior to unloading the collection
This commit is contained in:
parent
7ebd66a1c8
commit
745108bffd
1 changed files with 1 additions and 1 deletions
|
|
@ -667,8 +667,8 @@ title="%s" %s>%s</button>''' % (
|
||||||
"Called from a shortcut key. Close current active window."
|
"Called from a shortcut key. Close current active window."
|
||||||
aw = self.app.activeWindow()
|
aw = self.app.activeWindow()
|
||||||
if not aw or aw == self or force:
|
if not aw or aw == self or force:
|
||||||
self.unloadProfile(browser=False)
|
|
||||||
self.app.closeAllWindows()
|
self.app.closeAllWindows()
|
||||||
|
self.unloadProfile(browser=False)
|
||||||
else:
|
else:
|
||||||
aw.close()
|
aw.close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue