From 242a2b2e6974ed0381bc0dab095ef906cf752e97 Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 27 Aug 2024 13:21:41 +0800 Subject: [PATCH] Save/load info box content --- pytec/pytec/gui/view/ctrl_panel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pytec/pytec/gui/view/ctrl_panel.py b/pytec/pytec/gui/view/ctrl_panel.py index c6fbbef..c8ce16d 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -264,7 +264,8 @@ class CtrlPanel(QObject): await self.thermostat.load_cfg(ch) 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) @@ -272,5 +273,7 @@ class CtrlPanel(QObject): await self.thermostat.save_cfg(ch) 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.", )