forked from M-Labs/thermostat
Save/load info box content
This commit is contained in:
parent
7cf8d6ee70
commit
b54cfacd92
@ -234,7 +234,8 @@ class CtrlPanel(QObject):
|
|||||||
await self.thermostat.load_cfg(ch)
|
await self.thermostat.load_cfg(ch)
|
||||||
|
|
||||||
self.info_box.display_info_box(
|
self.info_box.display_info_box(
|
||||||
"Config loaded", f"Channel {ch} Config has been loaded from flash."
|
f"Channel {ch} settings loaded",
|
||||||
|
f"Channel {ch} settings has been loaded from flash.",
|
||||||
)
|
)
|
||||||
|
|
||||||
@asyncSlot(int)
|
@asyncSlot(int)
|
||||||
@ -242,5 +243,7 @@ class CtrlPanel(QObject):
|
|||||||
await self.thermostat.save_cfg(ch)
|
await self.thermostat.save_cfg(ch)
|
||||||
|
|
||||||
self.info_box.display_info_box(
|
self.info_box.display_info_box(
|
||||||
"Config saved", f"Channel {ch} Config has been saved from flash."
|
f"Channel {ch} settings saved",
|
||||||
|
f"Channel {ch} settings has been saved to flash.\n"
|
||||||
|
"It will be loaded on Thermostat reset, or when settings are explicitly loaded.",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user