mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
fix silentlyClose check
This commit is contained in:
parent
394fffde13
commit
90a5a48d6c
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ close the profile or restart Anki."""))
|
||||||
for w in self.app.topLevelWidgets():
|
for w in self.app.topLevelWidgets():
|
||||||
if w.isVisible():
|
if w.isVisible():
|
||||||
# windows with this property are safe to close immediately
|
# windows with this property are safe to close immediately
|
||||||
if getattr(w, "silentlyClose"):
|
if getattr(w, "silentlyClose", None):
|
||||||
w.close()
|
w.close()
|
||||||
else:
|
else:
|
||||||
showWarning(f"Window should have been closed: {w}")
|
showWarning(f"Window should have been closed: {w}")
|
||||||
|
|
Loading…
Reference in a new issue