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:
parent
7074893af7
commit
23a3413c23
@ -307,7 +307,11 @@ def getSaveFile(parent, title, dir_description, key, ext, fname=None):
|
||||
|
||||
def saveGeom(widget, key):
|
||||
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):
|
||||
key += "Geom"
|
||||
|
Loading…
Reference in New Issue
Block a user