Tidy up spacing.

This commit is contained in:
Storm Dragon 2024-11-28 15:06:23 -05:00
parent 89891f18af
commit 5178a66a6f

View File

@ -530,26 +530,26 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
return True return True
def _showPreferencesUI(script, prefs): def _showPreferencesUI(script, prefs):
if cthulhu_state.cthulhuOS: if cthulhu_state.cthulhuOS:
cthulhu_state.cthulhuOS.showGUI() cthulhu_state.cthulhuOS.showGUI()
return return
try: try:
module = importlib.import_module('.cthulhu_gui_prefs', 'cthulhu') module = importlib.import_module('.cthulhu_gui_prefs', 'cthulhu')
except Exception: except Exception:
debug.printException(debug.LEVEL_SEVERE) debug.printException(debug.LEVEL_SEVERE)
return return
uiFile = os.path.join(cthulhu_platform.datadir, uiFile = os.path.join(cthulhu_platform.datadir,
cthulhu_platform.package, cthulhu_platform.package,
"ui", "ui",
"cthulhu-setup.ui") "cthulhu-setup.ui")
cthulhu_state.cthulhuOS = module.CthulhuSetupGUI(uiFile, "cthulhuSetupWindow", prefs) cthulhu_state.cthulhuOS = module.CthulhuSetupGUI(uiFile, "cthulhuSetupWindow", prefs)
cthulhu_state.cthulhuOS.init(script) cthulhu_state.cthulhuOS.init(script)
cthulhu_state.cthulhuOS.showGUI() cthulhu_state.cthulhuOS.showGUI()
def showPreferencesGUI(script=None, inputEvent=None): def showPreferencesGUI(script=None, inputEvent=None):
"""Displays the user interface to configure Cthulhu and set up """Displays the user interface to configure Cthulhu and set up
user preferences using a GUI. user preferences using a GUI.