Skip to content

Commit

Permalink
Fix typo in SplitToDock
Browse files Browse the repository at this point in the history
  • Loading branch information
BAndysc committed Mar 8, 2024
1 parent 9cded63 commit 8ef446d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dock.Model/FactoryBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ef446d

Please sign in to comment.