From acc8caee31c4be90bd38d1af18136b0e84f6fe94 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 27 九月 2024 14:01:19 +0800
Subject: [PATCH] Merge branch 'feature/v2.7_迭代' into feature/V2.7_Google

---
 HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs |   29 +++--------------------------
 1 files changed, 3 insertions(+), 26 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs
index 6232dd0..e0f5a35 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs
@@ -195,33 +195,10 @@
                         }
                         else
                         {
-                            if (sceneFunction.localFunction.spk == SPK.ElectricalTvHisense)
+                            var isHasColorful = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful);
+                            if (isHasColorful != null)
                             {
-                                for(int i = 0;i< sceneFunction.status.Count;i++)
-                                {
-                                    var tvState = sceneFunction.status[i];
-                                    if (tvState.key == FunctionAttributeKey.OnOff)
-                                    {
-                                        tvState.key = "wol";
-                                        tvState.value = "on";
-                                    }
-                                    else
-                                    {
-                                        if(string.IsNullOrEmpty( tvState.value))
-                                        {
-                                            sceneFunction.status.RemoveAt(i);
-                                            i--;
-                                        }
-                                    }
-                                }
-                            }
-                            else
-                            {
-                                var isHasColorful = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful);
-                                if (isHasColorful != null)
-                                {
-                                    sceneFunction.status.Remove(isHasColorful);
-                                }
+                                sceneFunction.status.Remove(isHasColorful);
                             }
                         }
                     }

--
Gitblit v1.8.0