~aleteoryx/muditaos

0befadff1c75bce86dfa02396517ac34586671ff — Tigran Soghbatyan 4 years ago f400bda
[BH-1251] Fix meditation app respawning

Prevent meditation app from spawning multiple instances
M products/BellHybrid/apps/application-bell-meditation-timer/presenter/MeditationProgressPresenter.cpp => products/BellHybrid/apps/application-bell-meditation-timer/presenter/MeditationProgressPresenter.cpp +1 -4
@@ 68,10 68,7 @@ namespace app::meditation
    void MeditationProgressPresenter::abandon()
    {
        timer->stop();
        app::manager::Controller::sendAction(
            app,
            app::manager::actions::Launch,
            std::make_unique<app::ApplicationLaunchData>(app::applicationBellMeditationTimerName));
        app->switchWindow(gui::name::window::main_window);
    }

    void MeditationProgressPresenter::finish()