From 4230f40556c36ac1d9f1aae1d80f6cb81754e708 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 08 七月 2020 14:59:20 +0800
Subject: [PATCH] 2020-07-08-01

---
 ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
index 32005f1..cb02f21 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
@@ -1275,7 +1275,15 @@
                         var nightlight = new Nightlight();
                         UserView.HomePage.Instance.AddChidren(nightlight);
                         UserView.HomePage.Instance.PageIndex += 1;
-                        nightlight.Show(common, false, _if[1]);
+                        if (edit)
+                        {
+                            nightlight.Show(common, edit, _if[1], Common.Logic.CurrentLogic.Actions[intValue]);
+                        }
+                        else
+                        {
+                            nightlight.Show(common, edit, _if[1]);
+                        }
+                        
                     }
                     break;
             }

--
Gitblit v1.8.0