forked from M-Labs/thermostat
Add back the info_box
This commit is contained in:
parent
e3ac7debc4
commit
9910f935a9
@ -9,6 +9,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
|
||||
def __init__(self, thermostat, info_box, style):
|
||||
super().__init__()
|
||||
self._thermostat = thermostat
|
||||
self._info_box = info_box
|
||||
self._style = style
|
||||
self.setTitle("Thermostat settings")
|
||||
|
||||
@ -69,7 +70,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
|
||||
def load(_):
|
||||
self._thermostat.load_cfg()
|
||||
|
||||
self.info_box.display_info_box(
|
||||
self._info_box.display_info_box(
|
||||
"Config loaded", "All channel configs have been loaded from flash."
|
||||
)
|
||||
|
||||
@ -81,7 +82,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
|
||||
def save(_):
|
||||
self._thermostat.save_cfg()
|
||||
|
||||
self.info_box.display_info_box(
|
||||
self._info_box.display_info_box(
|
||||
"Config saved", "All channel configs have been saved to flash."
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user