Fix bug causing quickring to be missing in settings and some settings not remembered correctly
This commit is contained in:
parent
e4b4fba5a1
commit
ab03504d0c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user