Add back the info_box

This commit is contained in:
atse 2024-08-27 17:07:12 +08:00
parent e3ac7debc4
commit 9910f935a9

View File

@ -9,6 +9,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
def __init__(self, thermostat, info_box, style): def __init__(self, thermostat, info_box, style):
super().__init__() super().__init__()
self._thermostat = thermostat self._thermostat = thermostat
self._info_box = info_box
self._style = style self._style = style
self.setTitle("Thermostat settings") self.setTitle("Thermostat settings")
@ -69,7 +70,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
def load(_): def load(_):
self._thermostat.load_cfg() 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." "Config loaded", "All channel configs have been loaded from flash."
) )
@ -81,7 +82,7 @@ class ThermostatCtrlMenu(QtWidgets.QMenu):
def save(_): def save(_):
self._thermostat.save_cfg() 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." "Config saved", "All channel configs have been saved to flash."
) )