forked from M-Labs/thermostat
Change name of button slot
This commit is contained in:
parent
b4a5e90f2e
commit
5ced33594c
|
@ -73,7 +73,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
|
||||
self.setupUi(self)
|
||||
|
||||
self.connect_btn.clicked.connect(self.connect)
|
||||
self.fan_power_slider.valueChanged.connect(self.fan_set)
|
||||
self.fan_auto_box.stateChanged.connect(self.fan_auto_set)
|
||||
|
||||
|
@ -163,7 +162,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
await self.tec_client.disconnect()
|
||||
|
||||
@asyncSlot()
|
||||
async def connect(self):
|
||||
async def on_connect_btn_clicked(self):
|
||||
ip, port = self.ip_set_line.text(), self.port_set_spin.value()
|
||||
try:
|
||||
if not (self.tec_client.is_connecting() or self.tec_client.is_connected()):
|
||||
|
|
Loading…
Reference in New Issue