work around full sync on start closing the app

This is just a temporary solution until the syncing code can be
reworked.

https://anki.tenderapp.com/discussions/ankidesktop/39761-anki-crashing-after-sync-and-download
This commit is contained in:
Damien Elmes 2020-04-16 08:10:17 +10:00
parent 16be20e2fa
commit a6b676039b

View file

@ -868,8 +868,10 @@ title="%s" %s>%s</button>""" % (
from aqt.sync import SyncManager from aqt.sync import SyncManager
self.state = "sync" self.state = "sync"
self.app.setQuitOnLastWindowClosed(False)
self.syncer = SyncManager(self, self.pm) self.syncer = SyncManager(self, self.pm)
self.syncer.sync() self.syncer.sync()
self.app.setQuitOnLastWindowClosed(True)
# Tools # Tools
########################################################################## ##########################################################################