From 5178a66a6f1289054530363220de8bba2b361edf Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 28 Nov 2024 15:06:23 -0500 Subject: [PATCH] Tidy up spacing. --- src/cthulhu/cthulhu.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/cthulhu/cthulhu.py b/src/cthulhu/cthulhu.py index 399d378..f3c4b41 100644 --- a/src/cthulhu/cthulhu.py +++ b/src/cthulhu/cthulhu.py @@ -530,26 +530,26 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False): return True -def _showPreferencesUI(script, prefs): - if cthulhu_state.cthulhuOS: - cthulhu_state.cthulhuOS.showGUI() - return - - try: - module = importlib.import_module('.cthulhu_gui_prefs', 'cthulhu') - except Exception: - debug.printException(debug.LEVEL_SEVERE) - return - - uiFile = os.path.join(cthulhu_platform.datadir, - cthulhu_platform.package, - "ui", - "cthulhu-setup.ui") - - cthulhu_state.cthulhuOS = module.CthulhuSetupGUI(uiFile, "cthulhuSetupWindow", prefs) - cthulhu_state.cthulhuOS.init(script) - cthulhu_state.cthulhuOS.showGUI() - +def _showPreferencesUI(script, prefs): + if cthulhu_state.cthulhuOS: + cthulhu_state.cthulhuOS.showGUI() + return + + try: + module = importlib.import_module('.cthulhu_gui_prefs', 'cthulhu') + except Exception: + debug.printException(debug.LEVEL_SEVERE) + return + + uiFile = os.path.join(cthulhu_platform.datadir, + cthulhu_platform.package, + "ui", + "cthulhu-setup.ui") + + cthulhu_state.cthulhuOS = module.CthulhuSetupGUI(uiFile, "cthulhuSetupWindow", prefs) + cthulhu_state.cthulhuOS.init(script) + cthulhu_state.cthulhuOS.showGUI() + def showPreferencesGUI(script=None, inputEvent=None): """Displays the user interface to configure Cthulhu and set up user preferences using a GUI.