]> git.earman.xyz Git - sensor-watch.git/commitdiff
avoid calling deactivate on widget 0 before it's activated
authorJoey Castillo <jose.castillo@gmail.com>
Sun, 3 Oct 2021 23:15:47 +0000 (19:15 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Sun, 3 Oct 2021 23:15:47 +0000 (19:15 -0400)
launcher/launcher.c

index 8dc3819929b557e62e9c3baa938dcdc8f1785b77..0d4fbe86c09fa018627b414210c7821adf9a894e 100644 (file)
@@ -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() {