From 4caaf44f742954d186cb3efd68dd57312d842fe8 Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 29 Aug 2023 12:11:55 +0800 Subject: [PATCH] Both command and param --- pytec/tec_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 2f843f5..6a5f26a 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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"]])