don't save window geom when window is fullscreen

fixes windows being shown in extra workspaces instead of tabs on osx

https://anki.tenderapp.com/discussions/ankidesktop/29094-anki-21-issue
This commit is contained in:
Damien Elmes 2018-08-08 12:30:58 +10:00
parent 7074893af7
commit 23a3413c23

View File

@ -307,7 +307,11 @@ def getSaveFile(parent, title, dir_description, key, ext, fname=None):
def saveGeom(widget, key): def saveGeom(widget, key):
key += "Geom" key += "Geom"
aqt.mw.pm.profile[key] = widget.saveGeometry() if isMac and widget.windowState() & Qt.WindowFullScreen:
geom = None
else:
geom = widget.saveGeometry()
aqt.mw.pm.profile[key] = geom
def restoreGeom(widget, key, offset=None, adjustSize=False): def restoreGeom(widget, key, offset=None, adjustSize=False):
key += "Geom" key += "Geom"