fix(dock): remove unused using and add event cleanup symmetry

This commit is contained in:
2026-03-28 19:10:05 +09:00
parent 975c359bf4
commit 3f6de84387
2 changed files with 1 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
using Ghost.Core;
using Ghost.Editor.Core.Controls.Internal.Docking;
using Ghost.Editor.View.Windows;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;

View File

@@ -27,6 +27,7 @@ internal sealed partial class DockWindow : WindowEx
this.Closed += (s, e) =>
{
PART_DockLayout.TabTornOff -= OnTabTornOff;
if (_rootPropertyToken != 0)
{
PART_DockLayout.UnregisterPropertyChangedCallback(DockLayout.RootProperty, _rootPropertyToken);