mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fixes media sync progress bar not reaching 100%
This commit is contained in:
parent
5fc7d08a4a
commit
3832bfddda
2 changed files with 4 additions and 0 deletions
|
@ -1497,7 +1497,10 @@ day = :d""", d=yesterday)
|
|||
def openSyncProgress(self):
|
||||
self.syncProgressDialog = QProgressDialog(_("Syncing Media..."),
|
||||
"", 0, 0, self)
|
||||
self.syncProgressDialog.setWindowTitle(_("Syncing Media..."))
|
||||
self.syncProgressDialog.setCancelButton(None)
|
||||
self.syncProgressDialog.setAutoClose(False)
|
||||
self.syncProgressDialog.setAutoReset(False)
|
||||
|
||||
def closeSyncProgress(self):
|
||||
self.syncProgressDialog.cancel()
|
||||
|
|
|
@ -165,6 +165,7 @@ class Sync(QThread):
|
|||
client.sync()
|
||||
except:
|
||||
self.emit(SIGNAL("bulkSyncFailed"))
|
||||
time.sleep(0.1)
|
||||
self.emit(SIGNAL("closeSyncProgress"))
|
||||
|
||||
def bulkCallback(self, *args):
|
||||
|
|
Loading…
Reference in a new issue