[FL-3471] Infrared: buttons move feature rework (#2949)

This commit is contained in:
Nikolay Minaylov
2023-08-07 12:18:46 +03:00
committed by GitHub
parent c7648eb932
commit 4c771b66dc
11 changed files with 280 additions and 176 deletions

View File

@@ -82,9 +82,7 @@ bool infrared_scene_edit_on_event(void* context, SceneManagerEvent event) {
scene_manager_next_scene(scene_manager, InfraredSceneEditButtonSelect);
consumed = true;
} else if(submenu_index == SubmenuIndexMoveButton) {
infrared->app_state.edit_target = InfraredEditTargetButton;
infrared->app_state.edit_mode = InfraredEditModeMove;
scene_manager_next_scene(scene_manager, InfraredSceneEditButtonSelect);
scene_manager_next_scene(scene_manager, InfraredSceneEditMove);
consumed = true;
} else if(submenu_index == SubmenuIndexDeleteButton) {
infrared->app_state.edit_target = InfraredEditTargetButton;