Fix bug causing quickring to be missing in settings and some settings not remembered correctly

This commit is contained in:
Josh 2023-10-22 21:38:52 -04:00
parent e4b4fba5a1
commit e91dd311d8

View File

@ -246,26 +246,6 @@ namespace Pinetime {
// New Settings
void SetQuickRModes(QuickApp App_now, bool enabled) {
if (enabled != isQuickROn(App_now)) {
settingsChanged = true;
}
settings.quickApp.set(static_cast<size_t>(App_now), enabled);
};
std::bitset<5> getQuickRModes() const {
return settings.quickApp;
}
bool isQuickROn(const QuickApp app_holder) const {
return getQuickRModes()[static_cast<size_t>(app_holder)];
}
@ -300,6 +280,26 @@ namespace Pinetime {
return bleRadioEnabled;
};
// New Settings
void SetQuickRModes(QuickApp App_now, bool enabled) {
if (enabled != isQuickROn(App_now)) {
settingsChanged = true;
}
settings.quickApp.set(static_cast<size_t>(App_now), enabled);
};
std::bitset<5> getQuickRModes() const {
return settings.quickApp;
}
bool isQuickROn(const QuickApp app_holder) const {
return getQuickRModes()[static_cast<size_t>(app_holder)];
}
private:
Pinetime::Controllers::FS& fs;