mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix refresh timer firing during sync
This commit is contained in:
parent
6c0c6b5fec
commit
7c1761c4ff
1 changed files with 3 additions and 0 deletions
|
@ -507,6 +507,9 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
|||
self.pm.profile['autoSync']):
|
||||
from aqt.sync import SyncManager
|
||||
self.unloadCollection()
|
||||
# set a sync state so the refresh timer doesn't fire while deck
|
||||
# unloaded
|
||||
self.state = "sync"
|
||||
self.syncer = SyncManager(self, self.pm)
|
||||
self.syncer.sync()
|
||||
if reload:
|
||||
|
|
Loading…
Reference in a new issue