mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
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
18 lines
537 B
C
Executable file
18 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) {
|
|
}
|