Skip to content

Commit 324effd

Browse files
authored
Merge pull request #2 from Khaos66/Fix_426
Fix floating windows still created twice
2 parents d43c7c6 + e30352f commit 324effd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/Components/AvalonDock/DockingManager.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2125,9 +2125,8 @@ private void DockingManager_Loaded(object sender, RoutedEventArgs e)
21252125
}
21262126
_fwHiddenList.Clear();
21272127

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

21332132
//create the overlaywindow if it's possible

0 commit comments

Comments
 (0)