- Fix GUI size check crashing if setting did not exist
This commit is contained in:
parent
97d351755e
commit
a59cd33490
11
gloss.py
11
gloss.py
|
@ -63,8 +63,15 @@ class MainApp:
|
||||||
self.connected = True
|
self.connected = True
|
||||||
|
|
||||||
#Do an initial lookup for GUI size
|
#Do an initial lookup for GUI size
|
||||||
width = int(self.dbMgr.get_setting("GuiWidth"))
|
(width, height) = (self.dbMgr.get_setting("GuiWidth"), self.dbMgr.get_setting("GuiHeight"))
|
||||||
height = int(self.dbMgr.get_setting("GuiHeight"))
|
if not width is None:
|
||||||
|
width = int(width)
|
||||||
|
else:
|
||||||
|
width = 0
|
||||||
|
if not height is None:
|
||||||
|
height = int(height)
|
||||||
|
else:
|
||||||
|
height = 0
|
||||||
#Set stage size
|
#Set stage size
|
||||||
if width == 0 and height == 0:
|
if width == 0 and height == 0:
|
||||||
self.stage.fullscreen()
|
self.stage.fullscreen()
|
||||||
|
|
Loading…
Reference in New Issue