Desktop: use right button to open passport (#1127)

This commit is contained in:
あく
2022-04-18 15:34:18 +03:00
committed by GitHub
parent d993c1f98e
commit 703844dd69
5 changed files with 16 additions and 6 deletions

View File

@@ -116,7 +116,6 @@ bool desktop_scene_main_on_event(void* context, SceneManagerEvent event) {
}
consumed = true;
break;
case DesktopAnimationEventCheckAnimation:
animation_manager_check_blocking_process(desktop->animation_manager);
consumed = true;
@@ -126,7 +125,12 @@ bool desktop_scene_main_on_event(void* context, SceneManagerEvent event) {
consumed = true;
break;
case DesktopAnimationEventInteractAnimation:
animation_manager_interact_process(desktop->animation_manager);
if(!animation_manager_interact_process(desktop->animation_manager)) {
LoaderStatus status = loader_start(desktop->loader, "Passport", NULL);
if(status != LoaderStatusOk) {
FURI_LOG_E(TAG, "loader_start failed: %d", status);
}
}
consumed = true;
break;
case DesktopLockedEventUpdate: