mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Allow saving state on Qt 6
It seems to work normally in Qt 6.5 (which has no tab support). Previous issue: #1538.
This commit is contained in:
parent
34f329b306
commit
3ed7c75468
1 changed files with 2 additions and 3 deletions
|
@ -713,9 +713,8 @@ def _qt_state_key(kind: _QtStateKeyKind, key: str) -> str:
|
|||
|
||||
|
||||
def saveGeom(widget: QWidget, key: str) -> None:
|
||||
# restoring a fullscreen window is buggy
|
||||
# (at the time of writing; Qt 6.2.2 and 5.15)
|
||||
if not widget.isFullScreen():
|
||||
# restoring a fullscreen window breaks the tab functionality of 5.15
|
||||
if not widget.isFullScreen() or qtmajor == 6:
|
||||
key = _qt_state_key(_QtStateKeyKind.GEOMETRY, key)
|
||||
aqt.mw.pm.profile[key] = widget.saveGeometry()
|
||||
|
||||
|
|
Loading…
Reference in a new issue