forked from M-Labs/thermostat
Don't enabled thermostat settings before connect
This commit is contained in:
parent
1ae44d6b82
commit
1f0e74bf9f
|
@ -382,6 +382,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.graph_group.setEnabled(result)
|
self.graph_group.setEnabled(result)
|
||||||
self.fan_group.setEnabled(result)
|
self.fan_group.setEnabled(result)
|
||||||
self.report_group.setEnabled(result)
|
self.report_group.setEnabled(result)
|
||||||
|
self.thermostat_settings.setEnabled(result)
|
||||||
|
|
||||||
self.host_set_line.setEnabled(not result)
|
self.host_set_line.setEnabled(not result)
|
||||||
self.port_set_spin.setEnabled(not result)
|
self.port_set_spin.setEnabled(not result)
|
||||||
|
|
|
@ -248,6 +248,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="thermostat_settings">
|
<widget class="QToolButton" name="thermostat_settings">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">⚙</string>
|
<string notr="true">⚙</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -117,6 +117,7 @@ class Ui_MainWindow(object):
|
||||||
self.status_lbl.setObjectName("status_lbl")
|
self.status_lbl.setObjectName("status_lbl")
|
||||||
self.settings_layout.addWidget(self.status_lbl)
|
self.settings_layout.addWidget(self.status_lbl)
|
||||||
self.thermostat_settings = QtWidgets.QToolButton(parent=self.bottom_settings_group)
|
self.thermostat_settings = QtWidgets.QToolButton(parent=self.bottom_settings_group)
|
||||||
|
self.thermostat_settings.setEnabled(False)
|
||||||
self.thermostat_settings.setText("⚙")
|
self.thermostat_settings.setText("⚙")
|
||||||
self.thermostat_settings.setPopupMode(QtWidgets.QToolButton.ToolButtonPopupMode.InstantPopup)
|
self.thermostat_settings.setPopupMode(QtWidgets.QToolButton.ToolButtonPopupMode.InstantPopup)
|
||||||
self.thermostat_settings.setObjectName("thermostat_settings")
|
self.thermostat_settings.setObjectName("thermostat_settings")
|
||||||
|
|
Loading…
Reference in New Issue