From c1863db0158fb6c2a1cd96686d514c98c1073937 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 17 一月 2020 11:58:18 +0800
Subject: [PATCH] 2020-01-17

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
index 19c0095..c4b8c7a 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
@@ -258,7 +258,7 @@
                         alertDialog.Close ();
                         IO.FileUtils.DeleteAllFile ();
                         foreach (var tempHome in UserConfig.Instance.HomeLists) {
-                            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Name));
+                            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Id));
                         }
                         MainPage.LoginUser.LastTime = DateTime.MinValue;
                         MainPage.LoginUser.SaveUserInfo ();
@@ -295,7 +295,7 @@
                     //    if (e2) {
                     //        IO.FileUtils.DeleteAllFile ();
                     //        foreach (var tempHome in UserConfig.Instance.HomeLists) {
-                    //            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.RegionName));
+                    //            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Id));
                     //        }
                     //    }
                     //    MainPage.LoginUser.LastTime = DateTime.MinValue;

--
Gitblit v1.8.0