Implement library caching

This commit is contained in:
RandyTheSilly committed 2026-10-11 14:19:13 -04:00
1 parent 6fb0a6dae6
commit 1e9375f5e9
2 files changed
+75 -2

No files matched your search

+6
View File
@@ -191,6 +191,8 @@ static void to_pkjs_move_back() {
}
}
////////////////////// MENU LAYER CALLBACKS //////////////////////
static uint16_t menu_get_num_rows(MenuLayer *menu_layer, uint16_t section_index, void *context) {
switch (s_current_menu_scope) {
case NAV_SCOPE_MAIN:
@@ -256,6 +258,8 @@ static void menu_click_config_provider(void *context) {
window_single_click_subscribe(BUTTON_ID_BACK, menu_back_click_handler);
}
////////////////////// UI //////////////////////
static void divider_layer_update_proc(Layer *layer, GContext *ctx) {
graphics_context_set_fill_color(ctx, GColorBlack);
graphics_fill_rect(ctx, layer_get_bounds(layer), 0, GCornerNone);
@@ -296,6 +300,8 @@ static void main_window_unload() {
menu_layer_destroy(s_menu_layer);
}
////////////////////// SETUP //////////////////////
static void init() {
// initialize pkjs
app_message_register_inbox_received(inbox_received_handler);