From 587c36e27131f2d028fcabc13b296a8de7470034 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 08 一月 2020 08:59:19 +0800 Subject: [PATCH] 2019.1.8 --- ZigbeeApp/Shared/Common/Room.cs | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Common/Room.cs b/ZigbeeApp/Shared/Common/Room.cs index 7e74cae..58819f9 100644 --- a/ZigbeeApp/Shared/Common/Room.cs +++ b/ZigbeeApp/Shared/Common/Room.cs @@ -1125,7 +1125,7 @@ /// <param name="iconPathType">I鍦烘櫙鑳屾櫙鍥剧墖鏉ユ簮绫诲瀷 鍥剧墖鏉ユ簮 0--鏈湴鍥惧簱 1--鎷嶇収 2--绯荤粺鍥惧簱 榛樿0</param> public async System.Threading.Tasks.Task<int> AddScene(string sceneName, string sceneIconPath, List<ZigBee.Device.Scene.AddSceneMemberData> commons, int iconPathType) { - var scenes = GetSceneUIsByFloorId(FloorId); + //var scenes = GetSceneUIsByFloorId(FloorId); //if(scenes!=null && scenes.Count>0) //{ // if (scenes.Find(s => s.Name == sceneName) != null) @@ -1180,11 +1180,10 @@ IconPathType = iconPathType, AddSceneMemberDataList= commons }; + sceneUI.Save(); SceneUIList.Add(sceneUI); SceneUIFilePathList.Add(sceneUI.FileName); - sceneUI.Save(); Save(); - HdlAutoBackupLogic.AddOrEditorFile(sceneUI.FileName); return 1; } return 0; -- Gitblit v1.8.0