mirror of
https://github.com/ankitects/anki.git
synced 2025-11-17 10:07:13 -05:00
Merge branch 'master' of git://github.com/scout/ankiqt
This commit is contained in:
commit
73c043ed7e
2 changed files with 4 additions and 0 deletions
|
|
@ -1513,7 +1513,10 @@ day = :d""", d=yesterday)
|
||||||
def openSyncProgress(self):
|
def openSyncProgress(self):
|
||||||
self.syncProgressDialog = QProgressDialog(_("Syncing Media..."),
|
self.syncProgressDialog = QProgressDialog(_("Syncing Media..."),
|
||||||
"", 0, 0, self)
|
"", 0, 0, self)
|
||||||
|
self.syncProgressDialog.setWindowTitle(_("Syncing Media..."))
|
||||||
self.syncProgressDialog.setCancelButton(None)
|
self.syncProgressDialog.setCancelButton(None)
|
||||||
|
self.syncProgressDialog.setAutoClose(False)
|
||||||
|
self.syncProgressDialog.setAutoReset(False)
|
||||||
|
|
||||||
def closeSyncProgress(self):
|
def closeSyncProgress(self):
|
||||||
self.syncProgressDialog.cancel()
|
self.syncProgressDialog.cancel()
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@ class Sync(QThread):
|
||||||
client.sync()
|
client.sync()
|
||||||
except:
|
except:
|
||||||
self.emit(SIGNAL("bulkSyncFailed"))
|
self.emit(SIGNAL("bulkSyncFailed"))
|
||||||
|
time.sleep(0.1)
|
||||||
self.emit(SIGNAL("closeSyncProgress"))
|
self.emit(SIGNAL("closeSyncProgress"))
|
||||||
|
|
||||||
def bulkCallback(self, *args):
|
def bulkCallback(self, *args):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue