[FL-3127] Fix navigation on unsupported card types (#2440)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Astra 2023-03-03 12:55:51 +02:00 committed by GitHub
parent fed4c28925
commit 42d27d04f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,9 @@ bool nfc_scene_read_card_success_on_event(void* context, SceneManagerEvent event
if(event.event == GuiButtonTypeLeft) {
consumed = scene_manager_previous_scene(nfc->scene_manager);
}
} else if(event.type == SceneManagerEventTypeBack) {
consumed =
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
}
return consumed;
}