summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-03 19:15:47 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-03 19:15:47 -0400
commita6d8a098507ed13537e17e51bb545dcadb579d40 (patch)
tree2449b703b6820aee3c652c14377ba86ef8a7a43d
parent27df51d40a29baea8c50a25ed2345b1293a5089c (diff)
downloadSensor-Watch-a6d8a098507ed13537e17e51bb545dcadb579d40.tar.gz
Sensor-Watch-a6d8a098507ed13537e17e51bb545dcadb579d40.tar.bz2
Sensor-Watch-a6d8a098507ed13537e17e51bb545dcadb579d40.zip
avoid calling deactivate on widget 0 before it's activated
-rw-r--r--launcher/launcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/launcher.c b/launcher/launcher.c
index 8dc38199..0d4fbe86 100644
--- a/launcher/launcher.c
+++ b/launcher/launcher.c
@@ -64,7 +64,8 @@ void app_setup() {
widgets[i].setup(&launcher_state.launcher_settings, &widget_contexts[i]);
}
- launcher_move_to_widget(0);
+ widgets[0].activate(&launcher_state.launcher_settings, widget_contexts[launcher_state.current_widget]);
+ widgets[0].loop(EVENT_ACTIVATE, &launcher_state.launcher_settings, 0, widget_contexts[launcher_state.current_widget]);
}
void app_prepare_for_sleep() {