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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user