The alarm reset button now closes the app

This commit is contained in:
RandyTheSilly committed 2026-10-30 21:22:35 -04:00
1 parent 969abe6bc6
commit 74ef206883
1 file changed
+7 -1
+7 -1
View File
@@ -260,10 +260,16 @@ static void inbox_received_handler(DictionaryIterator *iter, void *context) {
// handle alarm reset requests
if (dict_find(iter, MESSAGE_KEY_PKJS_ALARM_RESET)) {
wakeup_service_subscribe(NULL);
the_time.HourWIP = 0;
the_time.MinuteWIP = 0;
s_alarm_reason = WAKE_ALARM;
schedule_alarm(WAKE_ALARM);
if (!schedule_alarm(WAKE_ALARM)) {
return; // leave the failure status window visible
}
persist_write_int(STORAGE_KEY_ALARM_HOUR, the_time.HourSet);
persist_write_int(STORAGE_KEY_ALARM_MINUTE, the_time.MinuteSet);
window_stack_pop_all(true);
return;
}