~aleteoryx/muditaos

4a64cfb6e2ef54dc8ee479133663e2d5b9058e88 — Paweł Joński 3 years ago 36af512
[BH-1479] Disable double notification on alarm toggle

Disable double notification on alarm toggle
1 files changed, 2 insertions(+), 1 deletions(-)

M products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp
M products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp => products/BellHybrid/apps/application-bell-main/ApplicationBellMain.cpp +2 -1
@@ 42,7 42,8 @@ namespace app
    {
        getPopupFilter().addAppDependentFilter([&](const gui::PopupRequestParams &params) {
            const auto popupId = params.getPopupId();
            if (popupId == gui::popup::ID::Alarm) {
            if (popupId == gui::popup::ID::Alarm || popupId == gui::popup::ID::AlarmActivated ||
                popupId == gui::popup::ID::AlarmDeactivated) {
                return gui::name::window::main_window != getCurrentWindow()->getName();
            }
            return true;