浏览代码

增加数据持活

liufei 3 年之前
父节点
当前提交
28a523fb04
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)
             {