@@ -64,6 +64,7 @@ class ModeHandler(PayloadHandler):
defactive_payload(self,*args)->int:
target_data=self.get_db()
print(target_data)
outdict={}
forkeyinself.relevantKeys:
...
...
@@ -126,7 +127,9 @@ class ModeHandler(PayloadHandler):
self.NativeUI.q_send_cmd(*command)
if'SET_MODE'incommand:
self.modeSwitched.emit(command[-1])
self.commandSent()
if'SET_TARGET'incommand[0]:
mode=self.get_mode(command[0])
self.commandSent(mode)
return0
defhandle_cancel_pressed(self,buttonMode:str):
...
...
@@ -151,14 +154,21 @@ class ModeHandler(PayloadHandler):
self.refresh_button_colour()
self.refresh_main_button_colour()
defcommandSent(self):
defcommandSent(self,key='CURRENT'):
self.commandList=[]
print('going to use ')
print(key)
mode=self.get_mode(key)
ifmode=='CURRENT':
mode==self.NativeUI.currentMode
forwidgetinself.spinDict:
ifself.activeModeinwidget:
ifmode.replace("/","_").replace("-","_")inwidget.replace("/","_").replace("-","_"):#self.NativeUI.currentMode.replace("/", "_").replace("-", "_") in widget: