From b9eb89d270107ec2aa48a1105db12f30a39f6915 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Apr 2012 23:20:19 +0900 Subject: [PATCH] add confirmation to full sync --- aqt/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/main.py b/aqt/main.py index 4f6e2e82f..3f6981a60 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -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()