mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
don't accidentally reset lastSync
This commit is contained in:
parent
01c6ca6776
commit
43e02439f1
1 changed files with 4 additions and 0 deletions
|
@ -160,9 +160,13 @@ class DeckProperties(QDialog):
|
|||
# syncing
|
||||
if self.dialog.doSync.checkState() == Qt.Checked:
|
||||
old = self.d.syncName
|
||||
oldSync = self.d.lastSync
|
||||
self.d.enableSyncing()
|
||||
if self.d.syncName != old:
|
||||
needSync = True
|
||||
else:
|
||||
# put it back
|
||||
self.d.lastSync = oldSync
|
||||
else:
|
||||
self.d.disableSyncing()
|
||||
# scheduling
|
||||
|
|
Loading…
Reference in a new issue