Both command and param

This commit is contained in:
atse 2023-08-29 12:11:55 +08:00
parent fc4f69aec0
commit 4caaf44f74

View File

@ -627,7 +627,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
if inner_param.name() == 'Control Method' and not data:
return
await asyncio.gather(*[self.client._command(x.format(value=data)) for x in inner_param.opts["commands"]])
elif inner_param.opts.get("param", None) is not None:
if inner_param.opts.get("param", None) is not None:
await asyncio.gather(*[self.client.set_param(*x, data) for x in inner_param.opts["param"]])