From ed2604abbc7949ebc78e3659fc9f03b2f814a14b Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 29 十月 2019 14:20:27 +0800
Subject: [PATCH] 2019.10.29-1
---
ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs b/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs
index 3157a0d..2e777a0 100644
--- a/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs
@@ -204,7 +204,7 @@
public override void RemoveFromParent()
{
ZbGateway.StatusList.Remove(this);
- action();
+ action?.Invoke();
RemoveUpdateControlDeviceStatuAction();
base.RemoveFromParent();
}
@@ -490,7 +490,6 @@
Shared.Common.Room.Lists[0].AddDevice(device.FileName);
collectionBtn.IsSelected = true;
}
- action?.Invoke();
}
/// <summary>
--
Gitblit v1.8.0