From f46be160caed45c67e8980173d29ed48d525a4d3 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 28 三月 2023 14:49:52 +0800
Subject: [PATCH] 2023年03月28日14:49:50

---
 HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
index cc585e6..25a9a06 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
@@ -401,6 +401,14 @@
                     {
                         foreach (var scene in listScene)
                         {
+                            if(scene == null)
+                            {
+                                continue;
+                            }
+                            if(scene.sceneType == SceneType.LightScene)
+                            {
+                                continue;
+                            }
                             System.Threading.Thread.Sleep(10);
                             Application.RunOnMainThread(() =>
                             {
@@ -695,7 +703,7 @@
                     btnAutomationTitle.TextSize = CSS_FontSize.TextFontSize;
                     btnSceneTilte.IsSelected = false;
                     btnSceneTilte.TextSize = CSS_FontSize.TextFontSize;
-                    contentPageView.PageIndex = 2;
+                    contentPageView.PageIndex = contentPageView.ChildrenCount - 1;
                 };
             }
         }

--
Gitblit v1.8.0