Compare commits
No commits in common. "c46cf1c93984350d31feae81edb50731cb708951" and "a97bb30ed35061ba71d8e19b11828330bad2e5e1" have entirely different histories.
c46cf1c939
...
a97bb30ed3
@ -554,23 +554,6 @@ 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.
|
||||||
|
@ -209,16 +209,6 @@ class Script(script.Script):
|
|||||||
cthulhu.quitCthulhu,
|
cthulhu.quitCthulhu,
|
||||||
cmdnames.QUIT_CTHULHU)
|
cmdnames.QUIT_CTHULHU)
|
||||||
|
|
||||||
self.inputEventHandlers["preferencesSettingsHandler"] = \
|
|
||||||
input_event.InputEventHandler(
|
|
||||||
cthulhu.showPreferencesGUI,
|
|
||||||
cmdnames.SHOW_PREFERENCES_GUI)
|
|
||||||
|
|
||||||
self.inputEventHandlers["appPreferencesSettingsHandler"] = \
|
|
||||||
input_event.InputEventHandler(
|
|
||||||
cthulhu.showAppPreferencesGUI,
|
|
||||||
cmdnames.SHOW_APP_PREFERENCES_GUI)
|
|
||||||
|
|
||||||
self.inputEventHandlers["cycleSettingsProfileHandler"] = \
|
self.inputEventHandlers["cycleSettingsProfileHandler"] = \
|
||||||
input_event.InputEventHandler(
|
input_event.InputEventHandler(
|
||||||
Script.cycleSettingsProfile,
|
Script.cycleSettingsProfile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user