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.
This commit is contained in:

committed by
JF

parent
6dd67eb5a2
commit
cf8b422899
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user