From ba6382c3cdedef35466c8b8be7529d6cc81db54b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 28 Nov 2024 06:22:07 -0500 Subject: [PATCH] Hopefully fix the -s flag which was broken by plugin updates. --- src/cthulhu/cthulhu.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cthulhu/cthulhu.py b/src/cthulhu/cthulhu.py index 4afb62e..1de52bf 100644 --- a/src/cthulhu/cthulhu.py +++ b/src/cthulhu/cthulhu.py @@ -530,6 +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() + _showPreferencesUI(script, prefs) + + return True def addKeyGrab(binding): """ Add a key grab for the given key binding."""