mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
replace showWarning with show_warning (#3306)
* replace showWarning with show_warning * run isort * change imports
This commit is contained in:
parent
194f35617d
commit
412e67db3e
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ from aqt.qt import (
|
|||
from aqt.utils import (
|
||||
ask_user_dialog,
|
||||
disable_help_button,
|
||||
show_warning,
|
||||
showText,
|
||||
showWarning,
|
||||
tooltip,
|
||||
|
@ -70,7 +71,7 @@ def handle_sync_error(mw: aqt.main.AnkiQt, err: Exception) -> None:
|
|||
elif isinstance(err, Interrupted):
|
||||
# no message to show
|
||||
return
|
||||
showWarning(str(err))
|
||||
show_warning(str(err))
|
||||
|
||||
|
||||
def on_normal_sync_timer(mw: aqt.main.AnkiQt) -> None:
|
||||
|
|
Loading…
Reference in a new issue