From a890f8568a0d0adfdd7118a21393d16c2423f941 Mon Sep 17 00:00:00 2001 From: Diego Miguel Date: Thu, 3 Mar 2022 01:57:42 +0100 Subject: Fixes in side cover toggling --- src/components/settings/Settings.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/components/settings/Settings.h') diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index 686024b2..56248d02 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -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; -- cgit v1.2.3-70-g09d2