forked from M-Labs/thermostat
Shorten channel to ch
This commit is contained in:
parent
4df651902a
commit
a213078c9a
@ -644,14 +644,14 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||||||
self.params[i].sigTreeStateChanged.connect(self.send_command)
|
self.params[i].sigTreeStateChanged.connect(self.send_command)
|
||||||
|
|
||||||
@asyncSlot()
|
@asyncSlot()
|
||||||
async def save(_, channel=i):
|
async def save(_, ch=i):
|
||||||
await self.client.save_config(channel)
|
await self.client.save_config(ch)
|
||||||
|
|
||||||
self.params[i].child('Save to flash').sigActivated.connect(save)
|
self.params[i].child('Save to flash').sigActivated.connect(save)
|
||||||
|
|
||||||
@asyncSlot()
|
@asyncSlot()
|
||||||
async def load(_, channel=i):
|
async def load(_, ch=i):
|
||||||
await self.client.load_config(channel)
|
await self.client.load_config(ch)
|
||||||
|
|
||||||
self.params[i].child('Load from flash').sigActivated.connect(load)
|
self.params[i].child('Load from flash').sigActivated.connect(load)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user