mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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():
|
||||
if w.isVisible():
|
||||
# windows with this property are safe to close immediately
|
||||
if getattr(w, "silentlyClose"):
|
||||
if getattr(w, "silentlyClose", None):
|
||||
w.close()
|
||||
else:
|
||||
showWarning(f"Window should have been closed: {w}")
|
||||
|
|
Loading…
Reference in a new issue