From 71f1df7772feec5cf83feefa851608adac18e005 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 06 十一月 2019 17:45:23 +0800 Subject: [PATCH] 2019.11.6 --- ZigbeeApp/Shared/Common/Room.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Common/Room.cs b/ZigbeeApp/Shared/Common/Room.cs index 23c861c..a0c4875 100644 --- a/ZigbeeApp/Shared/Common/Room.cs +++ b/ZigbeeApp/Shared/Common/Room.cs @@ -266,10 +266,10 @@ /// </summary> public static void InitAllRoom() { - if (CanInitAllRoom == false) - { - return; - } + //if (CanInitAllRoom == false) + //{ + // return; + //} Lists.Clear(); if (Config.Instance.Home.RoomFilePathList.Contains("Room_Favorite.json") == false) { @@ -638,6 +638,10 @@ /// <returns></returns> public List<Room> GetRoomsByCurrentFloorIdAppendLoveRoom() { + if(Config.Instance.Home.FloorDics.Count==0) + { + return Lists; + } var r = Lists.FindAll((obj) => obj.FloorId == Config.Instance.Home.CurrentFloorId); r.Insert(0, GetLoveRoom()); return r; -- Gitblit v1.8.0