diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-03 19:15:47 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-03 19:15:47 -0400 |
commit | a6d8a098507ed13537e17e51bb545dcadb579d40 (patch) | |
tree | 2449b703b6820aee3c652c14377ba86ef8a7a43d | |
parent | 27df51d40a29baea8c50a25ed2345b1293a5089c (diff) | |
download | Sensor-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.c | 3 |
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() { |