replace showWarning with show_warning (#3306)

* replace showWarning with show_warning

* run isort

* change imports
This commit is contained in:
Ren Tatsumoto 2024-07-21 06:22:47 +00:00 committed by GitHub
parent 194f35617d
commit 412e67db3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: