This commit is contained in:
chrys 2019-02-14 00:02:31 +01:00
parent 0059fedd3c
commit 4178c37b72
3 changed files with 8 additions and 7 deletions

View File

@ -121,7 +121,7 @@ KEY_FENRIR,KEY_CTRL,KEY_SPACE=current_quick_menu_value
KEY_FENRIR,KEY_RIGHT=next_quick_menu_entry
KEY_FENRIR,KEY_UP=next_quick_menu_value
KEY_FENRIR,KEY_LEFT=prev_quick_menu_entry
KEY_FENRIR<KEY_DOWN=prev_quick_menu_value
KEY_FENRIR,KEY_DOWN=prev_quick_menu_value
# linux specific
KEY_FENRIR,KEY_F7=import_clipboard_from_x
KEY_FENRIR,KEY_F8=export_clipboard_to_x

View File

@ -16,10 +16,11 @@ class command():
def getDescription(self):
return _('get next quick menu value')
def run(self):
try:
if self.env['runtime']['quickMenuManager'].nextValue():
value = self.env['runtime']['quickMenuManager'].getCurrentValue()
self.env['runtime']['outputManager'].presentText(value, interrupt=True)
def setCallback(self, callback):
pass
except Exception as e:
print(e)
def setCallback(self, callback):
pass

View File

@ -55,7 +55,7 @@ class quickMenuManager():
setting = self.quickMenu[self.position]['setting']
valueString = ''
try:
valueString = self.env['runtime']['settingsManager'].getSetting(self.quickMenu[self.position]['section'], self.quickMenu[self.position]['setting'])
valueString = self.env['runtime']['settingsManager'].getSetting(section, setting)
except:
return False