Skip to content

Commit

Permalink
reset main window after import
Browse files Browse the repository at this point in the history
This fixes #6.
  • Loading branch information
gflohr committed Dec 13, 2023
1 parent ddb360f commit f09198e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pathlib import Path

from aqt import mw, AnkiQt
from aqt.operations import QueryOp
from aqt.operations import CollectionOp, QueryOp
# pylint: disable=no-name-in-module
from aqt.qt import (QComboBox, QDialog, QDialogButtonBox, QFileDialog,
QGridLayout, QLabel, QListWidget, QListWidgetItem,
Expand Down Expand Up @@ -194,6 +194,7 @@ def _on_success(counts: tuple[int, int, int, int, int]) -> None:
ngettext('%d image deleted.', '%d images deleted.',
counts[4]) % (counts[4]),
)
mw.reset()
showInfo(' '.join(msgs))

def _do_import(config, _unused) -> tuple[int, int, int, int, int]:
Expand Down

0 comments on commit f09198e

Please sign in to comment.