That didn't work, trying a better approach to save full screen state
This commit is contained in:
+8
-6
@@ -729,14 +729,16 @@ class GuiMain(QMainWindow):
|
|||||||
doesn't have access to the exact state of the window.
|
doesn't have access to the exact state of the window.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.mainConf.isFullScreen = not self.mainConf.isFullScreen
|
|
||||||
if self.mainConf.isFullScreen:
|
|
||||||
logger.debug("Activating full screen mode")
|
|
||||||
else:
|
|
||||||
logger.debug("Deactivating full screen mode")
|
|
||||||
|
|
||||||
self.setWindowState(self.windowState() ^ Qt.WindowFullScreen)
|
self.setWindowState(self.windowState() ^ Qt.WindowFullScreen)
|
||||||
|
|
||||||
|
winState = self.windowState() & Qt.WindowFullScreen == Qt.WindowFullScreen
|
||||||
|
if winState:
|
||||||
|
logger.debug("Activated full screen mode")
|
||||||
|
else:
|
||||||
|
logger.debug("Deactivated full screen mode")
|
||||||
|
|
||||||
|
self.mainConf.isFullScreen = winState
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user