NFC: fix navigation from menu scenes #1459

This commit is contained in:
gornekich 2022-07-26 20:28:37 +03:00 committed by GitHub
parent 80a7de8078
commit c777206065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -45,8 +45,7 @@ bool nfc_scene_mf_classic_menu_on_event(void* context, SceneManagerEvent event)
consumed = true; consumed = true;
} }
} else if(event.type == SceneManagerEventTypeBack) { } else if(event.type == SceneManagerEventTypeBack) {
consumed = consumed = scene_manager_previous_scene(nfc->scene_manager);
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
} }
return consumed; return consumed;

View File

@ -49,8 +49,7 @@ bool nfc_scene_mf_ultralight_menu_on_event(void* context, SceneManagerEvent even
consumed = true; consumed = true;
} }
} else if(event.type == SceneManagerEventTypeBack) { } else if(event.type == SceneManagerEventTypeBack) {
consumed = consumed = scene_manager_previous_scene(nfc->scene_manager);
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
} }
return consumed; return consumed;