From a213078c9a1429962c75774054bf29bb0db365b0 Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 29 Aug 2023 17:30:35 +0800 Subject: [PATCH] Shorten channel to ch --- pytec/tec_qt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index bee2c18..5918a65 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -644,14 +644,14 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.params[i].sigTreeStateChanged.connect(self.send_command) @asyncSlot() - async def save(_, channel=i): - await self.client.save_config(channel) + async def save(_, ch=i): + await self.client.save_config(ch) self.params[i].child('Save to flash').sigActivated.connect(save) @asyncSlot() - async def load(_, channel=i): - await self.client.load_config(channel) + async def load(_, ch=i): + await self.client.load_config(ch) self.params[i].child('Load from flash').sigActivated.connect(load)