add confirmation to full sync

This commit is contained in:
Damien Elmes 2012-04-16 23:20:19 +09:00
parent 8355a553fa
commit b9eb89d270

View file

@ -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()