[FL-2620] Infrared error message (#1827)
* Show an error message if the remote could not be saved/renamed Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user