Fixed missing function.
This commit is contained in:
parent
53e6e095b3
commit
80033b3f37
@ -554,6 +554,23 @@ def _showPreferencesUI(script, prefs):
|
|||||||
cthulhu_state.cthulhuOS.init(script)
|
cthulhu_state.cthulhuOS.init(script)
|
||||||
cthulhu_state.cthulhuOS.showGUI()
|
cthulhu_state.cthulhuOS.showGUI()
|
||||||
|
|
||||||
|
def showAppPreferencesGUI(script=None, inputEvent=None):
|
||||||
|
"""Displays the user interface to configure the settings for a
|
||||||
|
specific applications within Cthulhu and set up those app-specific
|
||||||
|
user preferences using a GUI.
|
||||||
|
|
||||||
|
Returns True to indicate the input event has been consumed.
|
||||||
|
"""
|
||||||
|
|
||||||
|
prefs = {}
|
||||||
|
for key in settings.userCustomizableSettings:
|
||||||
|
prefs[key] = _settingsManager.getSetting(key)
|
||||||
|
|
||||||
|
script = script or cthulhu_state.activeScript
|
||||||
|
_showPreferencesUI(script, prefs)
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user