Tidy up spacing.
This commit is contained in:
parent
89891f18af
commit
5178a66a6f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user