Skip to content

Commit

Permalink
Merge pull request #30 from one-ware/auto-unpin
Browse files Browse the repository at this point in the history
Fix #26
  • Loading branch information
HendrikMennen authored Nov 30, 2024
2 parents 8d2609b + 26bdbc9 commit 4341231
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/OneWare.Core/Services/DockService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ public void Show<T>(DockShowLocation location = DockShowLocation.Window) where T

public void Show(IDockable dockable, DockShowLocation location = DockShowLocation.Window)
{
if (IsDockablePinned(dockable))
{
UnpinDockable(dockable);
}

//Check if dockable already exists
if (SearchView(dockable) is { } result)
{
Expand Down

0 comments on commit 4341231

Please sign in to comment.