Browse Source

增加数据持活

liufei 3 years ago
parent
commit
28a523fb04
1 changed files with 1 additions and 0 deletions
  1. 1 0
      MainWindow.xaml.cs

+ 1 - 0
MainWindow.xaml.cs

@@ -61,6 +61,7 @@ namespace GeekDesk
         /// </summary>
         private void LoadData()
         {
+            GC.KeepAlive(appData); // 持活
             this.DataContext = appData;
             if (appData.MenuList.Count == 0)
             {