|
|
@@ -50,8 +50,10 @@ bool infrared_scene_learn_enter_name_on_event(void* context, SceneManagerEvent e
|
|
|
if(success) {
|
|
|
scene_manager_next_scene(scene_manager, InfraredSceneLearnDone);
|
|
|
} else {
|
|
|
- scene_manager_search_and_switch_to_previous_scene(
|
|
|
- scene_manager, InfraredSceneRemoteList);
|
|
|
+ dialog_message_show_storage_error(infrared->dialogs, "Failed to save file");
|
|
|
+ const uint32_t possible_scenes[] = {InfraredSceneRemoteList, InfraredSceneStart};
|
|
|
+ scene_manager_search_and_switch_to_previous_scene_one_of(
|
|
|
+ scene_manager, possible_scenes, COUNT_OF(possible_scenes));
|
|
|
}
|
|
|
consumed = true;
|
|
|
}
|