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