91c1eaf5a8
* scene_manager: search -> search_and_switch_to previous_scene * scene_manager: add search and switch to another scene API * scene_manager: Navigation -> Back event
19 lines
537 B
C
Executable File
19 lines
537 B
C
Executable File
#include "../nfc_i.h"
|
|
|
|
const void nfc_scene_file_select_on_enter(void* context) {
|
|
Nfc* nfc = (Nfc*)context;
|
|
// Process file_select return
|
|
if(nfc_file_select(&nfc->dev)) {
|
|
scene_manager_next_scene(nfc->scene_manager, NfcSceneSavedMenu);
|
|
} else {
|
|
scene_manager_search_and_switch_to_previous_scene(nfc->scene_manager, NfcSceneStart);
|
|
}
|
|
}
|
|
|
|
const bool nfc_scene_file_select_on_event(void* context, SceneManagerEvent event) {
|
|
return false;
|
|
}
|
|
|
|
const void nfc_scene_file_select_on_exit(void* context) {
|
|
}
|