screen: set to fullscreen unless overrided with size #773
This commit is contained in:
parent
38d006c8a7
commit
5e4760771d
@ -103,6 +103,8 @@ class KlipperScreen(Gtk.Window):
|
||||
self.height = self._config.get_main_config().getint("height", monitor.get_geometry().height)
|
||||
self.set_default_size(self.width, self.height)
|
||||
self.set_resizable(False)
|
||||
if not (self._config.get_main_config().get("width") or self._config.get_main_config().get("height")):
|
||||
self.fullscreen()
|
||||
self.vertical_mode = self.width < self.height
|
||||
logging.info(f"Screen resolution: {self.width}x{self.height}")
|
||||
self.theme = self._config.get_main_config().get('theme')
|
||||
|
Loading…
x
Reference in New Issue
Block a user