fix(dock): remove unused using and add event cleanup symmetry
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user