[BH-1164] Remember value for Chime Interval Meditation timer Chime Interval displays last saved value
1 files changed, 3 insertions(+), 2 deletions(-) M products/BellHybrid/apps/application-bell-meditation-timer/presenter/IntervalChimePresenter.cpp
M products/BellHybrid/apps/application-bell-meditation-timer/presenter/IntervalChimePresenter.cpp => products/BellHybrid/apps/application-bell-meditation-timer/presenter/IntervalChimePresenter.cpp +3 -2
@@ 29,12 29,13 @@ namespace app::meditation std::string IntervalChimePresenter::getCurrentInterval() const { // Always set interval as none const auto value = settings->getValue(intervalDBRecordName, settings::SettingsScope::AppLocal); for (auto const &option : intervalOptions) { if (option.first == std::chrono::minutes{0}) { if (utils::to_string(option.first.count()) == value) { return option.second; } } // If not found, return "None" return intervalOptions.at(0).second; }