Skip to content

Commit e82469b

Browse files
committed
Fix setting removing it self from wake settings when opening calibration window twice.
1 parent f86c71b commit e82469b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/displayapp/screens/settings/SettingShakeThreshold.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ SettingShakeThreshold::SettingShakeThreshold(DisplayApp* app,
6363

6464
vDecay = xTaskGetTickCount();
6565
calibrating = false;
66+
EnableForCal = false;
6667
if(!settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake)){
6768
EnableForCal = true;
6869
settingsController.setWakeUpMode(Pinetime::Controllers::Settings::WakeUpMode::Shake,true);

src/displayapp/screens/settings/Settings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ std::unique_ptr<Screen> Settings::CreateScreen2() {
5757

5858
std::unique_ptr<Screen> Settings::CreateScreen3() {
5959

60-
std::array<Screens::List::Applications, 4> applications {{{Symbols::paintbrush, "PTS Colors", Apps::SettingPineTimeStyle},
61-
{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
60+
std::array<Screens::List::Applications, 4> applications {{{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
6261
{Symbols::check, "Firmware", Apps::FirmwareValidation},
63-
{Symbols::list, "About", Apps::SysInfo}
62+
{Symbols::list, "About", Apps::SysInfo},
63+
{Symbols::none, "None", Apps::None}
6464

6565
}};
6666

0 commit comments

Comments
 (0)