diff --git a/src/cthulhu/cthulhu.py b/src/cthulhu/cthulhu.py index 2e0040b..f5db1e9 100644 --- a/src/cthulhu/cthulhu.py +++ b/src/cthulhu/cthulhu.py @@ -530,18 +530,18 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False): return True -def showPreferencesGUI(script=None, inputEvent=None): - """Displays the user interface to configure Cthulhu and set up - user preferences using a GUI. - - Returns True to indicate the input event has been consumed. - """ - - prefs = _settingsManager.getGeneralSettings(_settingsManager.profile) - script = _scriptManager.getDefaultScript() - showPreferencesGUI(script, prefs) - - return True +def showPreferencesGUI(script=None, inputEvent=None): + """Displays the user interface to configure Cthulhu and set up + user preferences using a GUI. + + Returns True to indicate the input event has been consumed. + """ + + prefs = _settingsManager.getGeneralSettings(_settingsManager.profile) + script = _scriptManager.getDefaultScript() + _showPreferencesUI(script, prefs) + + return True def addKeyGrab(binding): """ Add a key grab for the given key binding."""