uhf_scene_file_select.c 767 B

1234567891011121314151617181920212223
  1. #include "../uhf_app_i.h"
  2. void uhf_scene_file_select_on_enter(void* context) {
  3. UHFApp* uhf_app = context;
  4. // Process file_select return
  5. uhf_device_set_loading_callback(uhf_app->uhf_device, uhf_show_loading_popup, uhf_app);
  6. if(uhf_file_select(uhf_app->uhf_device)) {
  7. scene_manager_next_scene(uhf_app->scene_manager, UHFSceneSavedMenu);
  8. } else {
  9. scene_manager_search_and_switch_to_previous_scene(uhf_app->scene_manager, UHFSceneStart);
  10. }
  11. uhf_device_set_loading_callback(uhf_app->uhf_device, NULL, uhf_app);
  12. }
  13. bool uhf_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  14. UNUSED(context);
  15. UNUSED(event);
  16. return false;
  17. }
  18. void uhf_scene_file_select_on_exit(void* context) {
  19. UNUSED(context);
  20. }