Destroy neat bar on unload
This commit is contained in:
+1
-1
Submodule neat_bar updated: 7fc72e0b08...9592ca2182
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define DEBUG_MODE 1
|
// #define DEBUG_MODE 1
|
||||||
|
|
||||||
// declare settings-derived statics
|
// declare settings-derived statics
|
||||||
static uint8_t s_is_jellyfin;
|
static uint8_t s_is_jellyfin;
|
||||||
@@ -157,7 +157,7 @@ static void main_window_load(Window *window) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// action bar
|
// neat bar
|
||||||
s_neat_bar_layer = neat_bar_layer_create();
|
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_UP, s_prev_icon);
|
||||||
neat_bar_layer_set_icon(s_neat_bar_layer, BUTTON_ID_SELECT, s_pin_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);
|
text_layer_destroy(s_sleep_time_layer);
|
||||||
bitmap_layer_destroy(s_logo_layer);
|
bitmap_layer_destroy(s_logo_layer);
|
||||||
layer_destroy(s_sleep_bar_layer);
|
layer_destroy(s_sleep_bar_layer);
|
||||||
// action_bar_layer_destroy(s_action_bar_layer);
|
neat_bar_layer_destroy(s_neat_bar_layer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user