Maximize on primary screen
This commit is contained in:
@@ -51,5 +51,11 @@ def run() -> int:
|
|||||||
defaults=DEFAULTS.copy(),
|
defaults=DEFAULTS.copy(),
|
||||||
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
|
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
|
||||||
)
|
)
|
||||||
|
primary_screen = app.primaryScreen()
|
||||||
|
if primary_screen is not None:
|
||||||
|
geometry = primary_screen.availableGeometry()
|
||||||
|
window.setGeometry(geometry)
|
||||||
|
window.showMaximized()
|
||||||
|
else:
|
||||||
window.showMaximized()
|
window.showMaximized()
|
||||||
return app.exec()
|
return app.exec()
|
||||||
|
|||||||
Reference in New Issue
Block a user