Fix setting removing it self from wake settings when opening calibration window twice.
This commit is contained in:
parent
f86c71b2bb
commit
e82469bffa
|
@ -63,6 +63,7 @@ SettingShakeThreshold::SettingShakeThreshold(DisplayApp* app,
|
|||
|
||||
vDecay = xTaskGetTickCount();
|
||||
calibrating = false;
|
||||
EnableForCal = false;
|
||||
if(!settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake)){
|
||||
EnableForCal = true;
|
||||
settingsController.setWakeUpMode(Pinetime::Controllers::Settings::WakeUpMode::Shake,true);
|
||||
|
|
|
@ -57,10 +57,10 @@ std::unique_ptr<Screen> Settings::CreateScreen2() {
|
|||
|
||||
std::unique_ptr<Screen> Settings::CreateScreen3() {
|
||||
|
||||
std::array<Screens::List::Applications, 4> applications {{{Symbols::paintbrush, "PTS Colors", Apps::SettingPineTimeStyle},
|
||||
{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
|
||||
std::array<Screens::List::Applications, 4> applications {{{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
|
||||
{Symbols::check, "Firmware", Apps::FirmwareValidation},
|
||||
{Symbols::list, "About", Apps::SysInfo}
|
||||
{Symbols::list, "About", Apps::SysInfo},
|
||||
{Symbols::none, "None", Apps::None}
|
||||
|
||||
}};
|
||||
|
||||
|
|
Loading…
Reference in a new issue