From 412e67db3e4451a7947ba06cae895ad8f7f17ee8 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sun, 21 Jul 2024 06:22:47 +0000 Subject: [PATCH] replace showWarning with show_warning (#3306) * replace showWarning with show_warning * run isort * change imports --- qt/aqt/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index 652fd3a2f..fa3477ee9 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -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: