mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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()
|
self.loadCollection()
|
||||||
|
|
||||||
def onFullSync(self):
|
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.forceFullSync = True
|
||||||
self.col.modSchema()
|
self.col.modSchema()
|
||||||
self.col.setMod()
|
self.col.setMod()
|
||||||
|
|
Loading…
Reference in a new issue