Destroy neat bar on unload

This commit is contained in:
2026-07-19 20:17:50 -04:00
parent 3b84319f83
commit 5fb3ed65c1
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
#include <stdio.h>
#include <string.h>
#define DEBUG_MODE 1
// #define DEBUG_MODE 1
// declare settings-derived statics
static uint8_t s_is_jellyfin;
@@ -157,7 +157,7 @@ static void main_window_load(Window *window) {
return;
}
// action bar
// neat bar
s_neat_bar_layer = neat_bar_layer_create();
neat_bar_layer_set_icon(s_neat_bar_layer, BUTTON_ID_UP, s_prev_icon);
neat_bar_layer_set_icon(s_neat_bar_layer, BUTTON_ID_SELECT, s_pin_icon);
@@ -259,7 +259,7 @@ static void main_window_unload(Window *window) {
text_layer_destroy(s_sleep_time_layer);
bitmap_layer_destroy(s_logo_layer);
layer_destroy(s_sleep_bar_layer);
// action_bar_layer_destroy(s_action_bar_layer);
neat_bar_layer_destroy(s_neat_bar_layer);
}
}