Skip to content

Commit 59a75c1

Browse files
committed
移除关闭窗口代码,更新窗口管理逻辑
在 `DockWindowHelpers` 类中,移除了关闭所有 `DockWindow` 窗口的代码。新增了从 `windows` 集合中移除 `dockManager` 的逻辑,以优化窗口管理。
1 parent c78a83a commit 59a75c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WinUI.Dock/Helpers/DockWindowHelpers.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public static void CloseAllWindows(DockManager dockManager)
3737
{
3838
window.Close();
3939
}
40+
41+
windows.Remove(dockManager);
4042
}
4143
}
4244
}

0 commit comments

Comments
 (0)