layout: always set dialogs size (fullscreen does not always work)

This commit is contained in:
alfrix 2023-10-13 23:33:24 -03:00
parent 6f32cdacbe
commit ac33e8574e

View File

@ -214,10 +214,8 @@ class KlippyGtk:
dialog.set_resizable(False)
dialog.set_transient_for(self.screen)
dialog.set_modal(True)
if self.screen.windowed:
dialog.set_default_size(self.width, self.height)
else:
logging.info("Dialog fullscreen")
dialog.set_default_size(self.width, self.height)
if not self.screen.windowed:
dialog.fullscreen()
for button in buttons: