From 3123951e46d279d90a8afb024a977879ba7e2a15 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 2 Jun 2009 15:08:28 +0900 Subject: [PATCH] don't update value when downloading --- ankiqt/ui/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 382e23334..0a57e4951 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1900,9 +1900,10 @@ Couldn't contact Anki Online. Please check your internet connection.""") def fullSyncProgress(self, type, val): if type == "fromLocal": s = _("Uploaded %dKB to server...") + self.updateProgress(label=s % (val / 1024), value=val) else: s = _("Downloaded %dKB from server...") - self.updateProgress(label=s % (val / 1024), value=val) + self.updateProgress(label=s % (val / 1024)) # Menu, title bar & status ##########################################################################