From 19e93f5bc86884f96f5497bb67ce58a02ead4c88 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Sun, 22 Dec 2024 12:59:16 +0100 Subject: [PATCH] Show alarm controller state in status icon --- src/displayapp/widgets/StatusIcons.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/displayapp/widgets/StatusIcons.cpp b/src/displayapp/widgets/StatusIcons.cpp index 7fc64e1b0c..532755585a 100644 --- a/src/displayapp/widgets/StatusIcons.cpp +++ b/src/displayapp/widgets/StatusIcons.cpp @@ -43,8 +43,7 @@ void StatusIcons::Update() { batteryIcon.SetBatteryPercentage(batteryPercent); } - bool alarmNotSet = (alarmController.State() == Pinetime::Controllers::AlarmController::AlarmState::Not_Set); - lv_obj_set_hidden(alarmIcon, alarmNotSet); + lv_obj_set_hidden(alarmIcon, !alarmController.IsEnabled()); bleState = bleController.IsConnected(); bleRadioEnabled = bleController.IsRadioEnabled();