From f9f9b0030fdd2691632569b7dcad9d0ddca5e4cf Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 23 十二月 2020 09:28:54 +0800
Subject: [PATCH] 2020-12-23 1.调整mqtt挤下线,跑ui线程。2.LoadEvent_CheckLinkStatus方法调整

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
index f08c953..cbf976b 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -410,8 +410,15 @@
         {
             functionListView.RemoveAll();
             functionListView.Height = Application.GetRealWidth(65 * scene.functions.Count);
-            foreach (var scenefunction in scene.functions)
+            for(int i =0;i<scene.functions.Count;)
             {
+                var scenefunction = scene.functions[i];
+                if (scenefunction.localFunction == null)
+                {
+                    scene.functions.Remove(scenefunction);
+                    continue;
+                }
+                i++;
                 var row = new RowLayout()
                 {
                     Height = Application.GetRealWidth(65),
@@ -788,6 +795,7 @@
                 pictureOptionView.Parent.RemoveFromParent();
                 Action<string> action = (obj) => {
                     scene.ImagePath = obj;
+                    addSceneImageView.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath
                     addSceneImageView.ImagePath = scene.ImagePath;
                     scene.EditScene();
                 };

--
Gitblit v1.8.0