Skip to content

Commit 19e93f5

Browse files
committed
Show alarm controller state in status icon
1 parent 3f3f859 commit 19e93f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/displayapp/widgets/StatusIcons.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ void StatusIcons::Update() {
4343
batteryIcon.SetBatteryPercentage(batteryPercent);
4444
}
4545

46-
bool alarmNotSet = (alarmController.State() == Pinetime::Controllers::AlarmController::AlarmState::Not_Set);
47-
lv_obj_set_hidden(alarmIcon, alarmNotSet);
46+
lv_obj_set_hidden(alarmIcon, !alarmController.IsEnabled());
4847

4948
bleState = bleController.IsConnected();
5049
bleRadioEnabled = bleController.IsRadioEnabled();

0 commit comments

Comments
 (0)