From 8ef446de2f92cb28d41e40055f322eec7bfce66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Korczy=C5=84ski?= Date: Fri, 8 Mar 2024 02:13:30 +0000 Subject: [PATCH] Fix typo in SplitToDock --- src/Dock.Model/FactoryBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dock.Model/FactoryBase.cs b/src/Dock.Model/FactoryBase.cs index 15fc26aa0..f8a8c354a 100644 --- a/src/Dock.Model/FactoryBase.cs +++ b/src/Dock.Model/FactoryBase.cs @@ -246,7 +246,7 @@ public virtual void SplitToDock(IDock dock, IDockable dockable, DockOperation op ownerDock.IsEmpty = ownerDock.VisibleDockables.Count == 0; OnDockableRemoved(dockable); ownerDock.VisibleDockables.Insert(index, layout); - layout.IsEmpty = layout.VisibleDockables?.Count == 0; + ownerDock.IsEmpty = ownerDock.VisibleDockables?.Count == 0; OnDockableAdded(dockable); InitDockable(layout, ownerDock); ownerDock.ActiveDockable = layout;