From e09b719615320e83f188dcd0a4d2dbc19baba753 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 11 Nov 2026 23:49:42 -0500 Subject: [PATCH] Unload drop menu window when countdown expires --- src/c/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/c/main.c b/src/c/main.c index e48bd88..3b0a29f 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -604,7 +604,10 @@ static void alarm_tick_handler(struct tm *tick_time, TimeUnits units_changed) { } snprintf(s_countdown_buf, sizeof(s_countdown_buf), "%03u", s_countdown_int); text_layer_set_text(s_countdown_txt_layer, s_countdown_buf); - if (s_countdown_int == 0 && !s_door_anim) { // punish user and demote if countdown expires + if (s_countdown_int == 0 && !s_door_anim) { // punish user and demote if countdown expires + if (s_drop_menu_layer) { // layer is null'd when window is unloaded + window_stack_remove(s_drop_window, true); + } s_continuous_zap_on_first_triangle = true; // begin zapping once the first countdown expires send_zap(); s_secs_since_last_input = 10;