From 24231214c51f10539eebe40d9868381ed3efe496 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 27 Apr 2022 22:46:37 +0200 Subject: [PATCH] Parent tooltips to mw --- qt/aqt/import_export/exporting.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/aqt/import_export/exporting.py b/qt/aqt/import_export/exporting.py index 0bce0a306..8db6211f0 100644 --- a/qt/aqt/import_export/exporting.py +++ b/qt/aqt/import_export/exporting.py @@ -179,7 +179,7 @@ class ColpkgExporter(Exporter): def export(mw: aqt.main.AnkiQt, options: Options) -> None: def on_success(_future: Future) -> None: mw.reopen() - tooltip(tr.exporting_collection_exported()) + tooltip(tr.exporting_collection_exported(), parent=mw) def on_failure(exception: Exception) -> None: mw.reopen() @@ -216,6 +216,8 @@ class ApkgExporter(Exporter): with_scheduling=options.include_scheduling, with_media=options.include_media, ), - success=lambda fut: tooltip(tr.exporting_note_exported(count=fut)), + success=lambda fut: tooltip( + tr.exporting_note_exported(count=fut), parent=mw + ), key="exporting", ).run_in_background()