don't update value when downloading

This commit is contained in:
Damien Elmes 2009-06-02 15:08:28 +09:00
parent d9a3658b56
commit 3123951e46

View file

@ -1900,9 +1900,10 @@ Couldn't contact Anki Online. Please check your internet connection.""")
def fullSyncProgress(self, type, val): def fullSyncProgress(self, type, val):
if type == "fromLocal": if type == "fromLocal":
s = _("Uploaded %dKB to server...") s = _("Uploaded %dKB to server...")
self.updateProgress(label=s % (val / 1024), value=val)
else: else:
s = _("Downloaded %dKB from server...") s = _("Downloaded %dKB from server...")
self.updateProgress(label=s % (val / 1024), value=val) self.updateProgress(label=s % (val / 1024))
# Menu, title bar & status # Menu, title bar & status
########################################################################## ##########################################################################