mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
add confirmation to full sync
This commit is contained in:
parent
8355a553fa
commit
b9eb89d270
1 changed files with 4 additions and 0 deletions
|
@ -506,6 +506,10 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
|||
self.loadCollection()
|
||||
|
||||
def onFullSync(self):
|
||||
if not askUser(_("""\
|
||||
If you proceed, you will need to choose between a full download or full \
|
||||
upload, overwriting any changes either here or on AnkiWeb. Proceed?""")):
|
||||
return
|
||||
self.forceFullSync = True
|
||||
self.col.modSchema()
|
||||
self.col.setMod()
|
||||
|
|
Loading…
Reference in a new issue