Skip to content

Commit

Permalink
NFC: fix navigation from menu scenes #1459
Browse files Browse the repository at this point in the history
  • Loading branch information
gornekich authored Jul 26, 2022
1 parent 80a7de8 commit c777206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions applications/nfc/scenes/nfc_scene_mf_classic_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ bool nfc_scene_mf_classic_menu_on_event(void* context, SceneManagerEvent event)
consumed = true;
}
} else if(event.type == SceneManagerEventTypeBack) {
consumed =
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
consumed = scene_manager_previous_scene(nfc->scene_manager);
}

return consumed;
Expand Down
3 changes: 1 addition & 2 deletions applications/nfc/scenes/nfc_scene_mf_ultralight_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ bool nfc_scene_mf_ultralight_menu_on_event(void* context, SceneManagerEvent even
consumed = true;
}
} else if(event.type == SceneManagerEventTypeBack) {
consumed =
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
consumed = scene_manager_previous_scene(nfc->scene_manager);
}

return consumed;
Expand Down

0 comments on commit c777206

Please sign in to comment.