Exit to the main menu on pressing BACK

This commit is contained in:
Astra 2023-02-27 19:25:56 +02:00 committed by MX
parent cf6dc9f895
commit cc52253e22
No known key found for this signature in database
GPG key ID: 7CCC66B7DBDD1C83

View file

@ -46,6 +46,9 @@ bool nfc_scene_read_card_success_on_event(void* context, SceneManagerEvent event
if(event.event == GuiButtonTypeLeft) { if(event.event == GuiButtonTypeLeft) {
consumed = scene_manager_previous_scene(nfc->scene_manager); 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; return consumed;
} }