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_RIGHT=next_quick_menu_entry
KEY_FENRIR,KEY_UP=next_quick_menu_value KEY_FENRIR,KEY_UP=next_quick_menu_value
KEY_FENRIR,KEY_LEFT=prev_quick_menu_entry 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 # linux specific
KEY_FENRIR,KEY_F7=import_clipboard_from_x KEY_FENRIR,KEY_F7=import_clipboard_from_x
KEY_FENRIR,KEY_F8=export_clipboard_to_x KEY_FENRIR,KEY_F8=export_clipboard_to_x

View File

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

View File

@ -55,7 +55,7 @@ class quickMenuManager():
setting = self.quickMenu[self.position]['setting'] setting = self.quickMenu[self.position]['setting']
valueString = '' valueString = ''
try: 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: except:
return False return False