Skip to content

Commit

Permalink
Merge pull request #2 from Khaos66/Fix_426
Browse files Browse the repository at this point in the history
Fix floating windows still created twice
  • Loading branch information
Khaos66 authored Feb 10, 2023
2 parents d43c7c6 + e30352f commit 324effd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/Components/AvalonDock/DockingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2125,9 +2125,8 @@ private void DockingManager_Loaded(object sender, RoutedEventArgs e)
}
_fwHiddenList.Clear();

// load floating windows not already loaded! (issue #59 & #254)
var items = new List<LayoutFloatingWindow>(Layout.FloatingWindows.Where(fw => !_fwList.Any(fwc => fwc.Model == fw)));
foreach (var fw in items)
// load floating windows not already loaded! (issue #59 & #254 & #426)
foreach (var fw in Layout.FloatingWindows.Where(fw => !_fwList.Any(fwc => fwc.Model == fw)))
CreateUIElementForModel(fw);

//create the overlaywindow if it's possible
Expand Down

0 comments on commit 324effd

Please sign in to comment.