mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
16be20e2fa
commit
a6b676039b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue