增加数据持活

This commit is contained in:
liufei
2022-01-09 17:37:25 +08:00
parent a38ecab5fa
commit 28a523fb04

View File

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