mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Parent tooltips to mw
This commit is contained in:
parent
c01b5002fd
commit
24231214c5
1 changed files with 4 additions and 2 deletions
|
@ -179,7 +179,7 @@ class ColpkgExporter(Exporter):
|
||||||
def export(mw: aqt.main.AnkiQt, options: Options) -> None:
|
def export(mw: aqt.main.AnkiQt, options: Options) -> None:
|
||||||
def on_success(_future: Future) -> None:
|
def on_success(_future: Future) -> None:
|
||||||
mw.reopen()
|
mw.reopen()
|
||||||
tooltip(tr.exporting_collection_exported())
|
tooltip(tr.exporting_collection_exported(), parent=mw)
|
||||||
|
|
||||||
def on_failure(exception: Exception) -> None:
|
def on_failure(exception: Exception) -> None:
|
||||||
mw.reopen()
|
mw.reopen()
|
||||||
|
@ -216,6 +216,8 @@ class ApkgExporter(Exporter):
|
||||||
with_scheduling=options.include_scheduling,
|
with_scheduling=options.include_scheduling,
|
||||||
with_media=options.include_media,
|
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",
|
key="exporting",
|
||||||
).run_in_background()
|
).run_in_background()
|
||||||
|
|
Loading…
Reference in a new issue