Add animations: box, cry, read, hack (#990)

* Add animations: box, cry, read, hack
* Desktop: unload animation if application is already started

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Albert Kharisov
2022-02-10 23:06:45 +04:00
committed by GitHub
parent 21ac37a6f6
commit 2c616983cf
69 changed files with 318 additions and 7 deletions

View File

@@ -87,6 +87,12 @@ void desktop_scene_main_on_enter(void* context) {
Loader* loader = furi_record_open("loader");
desktop->app_start_stop_subscription = furi_pubsub_subscribe(
loader_get_pubsub(loader), desktop_scene_main_app_started_callback, desktop);
// Special case: application is already running (autostart application)
if(loader_is_locked(loader)) {
animation_manager_unload_and_stall_animation(desktop->animation_manager);
}
furi_record_close("loader");
desktop_main_set_callback(main_view, desktop_scene_main_callback, desktop);