mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
show sync errors in a text window
This commit is contained in:
parent
9d5c63d3d2
commit
801feaa41b
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ from anki import Collection
|
|||
from anki.sync import Syncer, RemoteServer, FullSyncer, MediaSyncer, \
|
||||
RemoteMediaServer
|
||||
from anki.hooks import addHook, remHook
|
||||
from aqt.utils import tooltip, askUserDialog, showWarning
|
||||
from aqt.utils import tooltip, askUserDialog, showWarning, showText
|
||||
|
||||
# Sync manager
|
||||
######################################################################
|
||||
|
@ -83,7 +83,7 @@ class SyncManager(QObject):
|
|||
self.label = m
|
||||
self._updateLabel()
|
||||
elif evt == "error":
|
||||
showWarning(_("Syncing failed:\n%s")%
|
||||
showText(_("Syncing failed:\n%s")%
|
||||
self._rewriteError(args[0]))
|
||||
elif evt == "clockOff":
|
||||
self._clockOff()
|
||||
|
|
Loading…
Reference in a new issue