anki/qt/aqt/forms/forget.py
RumovZ b9c3b12f71
Optionally restore original position and reset counts when forgetting (#1714)
* Add forget prompt with options

- Restore original position
- Reset reps and lapses

* Restore position when resetting for export

* Add config context to avoid passing keys

* Add routine to fetch defaults; use method-specific enum (dae)

* Keep original position by default (dae)

* Fix code completion for forget dialog (dae)

Needs to be a symbolic link to the generated file
2022-03-09 16:51:41 +10:00

7 lines
126 B
Python

from aqt.qt import qtmajor
if qtmajor > 5:
from .forget_qt6 import *
else:
from .forget_qt5 import * # type: ignore