From 17dd089b5a4b47c3c82de33ddf7a1ed8540659e1 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Fri, 15 Mar 2024 04:27:37 +0300 Subject: [PATCH] sync scenes --- .../infrared/scenes/infrared_scene_universal_fan.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/applications/main/infrared/scenes/infrared_scene_universal_fan.c b/applications/main/infrared/scenes/infrared_scene_universal_fan.c index 9074b5508f..5fdea5a0ae 100644 --- a/applications/main/infrared/scenes/infrared_scene_universal_fan.c +++ b/applications/main/infrared/scenes/infrared_scene_universal_fan.c @@ -3,8 +3,6 @@ #include "common/infrared_scene_universal_common.h" void infrared_scene_universal_fan_on_enter(void* context) { - infrared_scene_universal_common_on_enter(context); - InfraredApp* infrared = context; ButtonPanel* button_panel = infrared->button_panel; InfraredBruteForce* brute_force = infrared->brute_force; @@ -97,16 +95,7 @@ void infrared_scene_universal_fan_on_enter(void* context) { button_panel_add_label(button_panel, 5, 11, FontPrimary, "Fan remote"); button_panel_add_icon(button_panel, 34, 68, &I_speed_text_30x30); - view_set_orientation(view_stack_get_view(infrared->view_stack), ViewOrientationVertical); - view_dispatcher_switch_to_view(infrared->view_dispatcher, InfraredViewStack); - - infrared_show_loading_popup(infrared, true); - bool success = infrared_brute_force_calculate_messages(brute_force); - infrared_show_loading_popup(infrared, false); - - if(!success) { - scene_manager_next_scene(infrared->scene_manager, InfraredSceneErrorDatabases); - } + infrared_scene_universal_common_on_enter(context); } bool infrared_scene_universal_fan_on_event(void* context, SceneManagerEvent event) {