Fixes in side cover toggling

This commit is contained in:
Diego Miguel
2022-03-03 01:57:42 +01:00
parent 03790d4e63
commit a890f8568a
3 changed files with 39 additions and 40 deletions

View File

@@ -99,18 +99,20 @@ namespace Pinetime {
};
void SetInfineatShowSideCover(bool show) {
if (show != settings.watchFaceInfineat.showSideCover)
if (show != settings.watchFaceInfineat.showSideCover) {
settings.watchFaceInfineat.showSideCover = show;
settingsChanged = true;
settings.watchFaceInfineat.showSideCover = show;
}
};
bool GetInfineatShowSideCover() const {
return settings.watchFaceInfineat.showSideCover;
};
void SetInfineatColorIndex(int index) {
if (index != settings.watchFaceInfineat.colorIndex)
if (index != settings.watchFaceInfineat.colorIndex) {
settings.watchFaceInfineat.colorIndex = index;
settingsChanged = true;
settings.watchFaceInfineat.colorIndex = index;
}
};
int GetInfineatColorIndex() const {
return settings.watchFaceInfineat.colorIndex;