From cf8b422899f198ae713b5a2a35e2ea737521b053 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sun, 2 Oct 2022 21:05:15 +0200 Subject: Checkbox list now receives a function pointer to call when the setting has changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController. --- src/components/settings/Settings.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/components/settings') diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index 9661a199..93f861f3 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -52,6 +52,11 @@ namespace Pinetime { Settings(Pinetime::Controllers::FS& fs); + Settings(const Settings&) = delete; + Settings& operator=(const Settings&) = delete; + Settings(Settings&&) = delete; + Settings& operator=(Settings&&) = delete; + void Init(); void SaveSettings(); @@ -135,14 +140,6 @@ namespace Pinetime { appMenu = menu; }; - void SetWatchfacesMenu(uint8_t menu) { - watchFacesMenu = menu; - }; - - uint8_t GetWatchfacesMenu() const { - return watchFacesMenu; - }; - uint8_t GetAppMenu() const { return appMenu; }; -- cgit v1.2.3-70-g09d2