nfc_scene_file_select.c 518 B

123456789101112131415161718
  1. #include "../nfc_i.h"
  2. void nfc_scene_file_select_on_enter(void* context) {
  3. Nfc* nfc = (Nfc*)context;
  4. // Process file_select return
  5. if(nfc_file_select(nfc->dev)) {
  6. scene_manager_next_scene(nfc->scene_manager, NfcSceneSavedMenu);
  7. } else {
  8. scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
  9. }
  10. }
  11. bool nfc_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  12. return false;
  13. }
  14. void nfc_scene_file_select_on_exit(void* context) {
  15. }