mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Possible fix for crash on first sync
https://forums.ankiweb.net/t/desktop-app-closes-itself-after-i-try-to-log-in/43132
This commit is contained in:
parent
3cd8c5700b
commit
a5154635dc
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ def confirm_full_download(
|
||||||
) -> None:
|
) -> None:
|
||||||
# confirmation step required, as some users customize their notetypes
|
# confirmation step required, as some users customize their notetypes
|
||||||
# in an empty collection, then want to upload them
|
# in an empty collection, then want to upload them
|
||||||
if not askUser(tr.sync_confirm_empty_download()):
|
if not askUser(tr.sync_confirm_empty_download(), parent=mw):
|
||||||
return on_done()
|
return on_done()
|
||||||
else:
|
else:
|
||||||
mw.closeAllWindows(lambda: full_download(mw, server_usn, on_done))
|
mw.closeAllWindows(lambda: full_download(mw, server_usn, on_done))
|
||||||
|
@ -182,7 +182,7 @@ def confirm_full_upload(
|
||||||
# confirmation step required, as some users have reported an upload
|
# confirmation step required, as some users have reported an upload
|
||||||
# happening despite having their AnkiWeb collection not being empty
|
# happening despite having their AnkiWeb collection not being empty
|
||||||
# (not reproducible - maybe a compiler bug?)
|
# (not reproducible - maybe a compiler bug?)
|
||||||
if not askUser(tr.sync_confirm_empty_upload()):
|
if not askUser(tr.sync_confirm_empty_upload(), parent=mw):
|
||||||
return on_done()
|
return on_done()
|
||||||
else:
|
else:
|
||||||
mw.closeAllWindows(lambda: full_upload(mw, server_usn, on_done))
|
mw.closeAllWindows(lambda: full_upload(mw, server_usn, on_done))
|
||||||
|
|
Loading…
Reference in a new issue