From e30352f789de9861a53962f1031b5f99df4d7973 Mon Sep 17 00:00:00 2001 From: Khaos Date: Thu, 9 Feb 2023 15:33:53 +0100 Subject: [PATCH] Fix floating windows still created twice --- source/Components/AvalonDock/DockingManager.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/Components/AvalonDock/DockingManager.cs b/source/Components/AvalonDock/DockingManager.cs index a6a396d5..be5a9df1 100644 --- a/source/Components/AvalonDock/DockingManager.cs +++ b/source/Components/AvalonDock/DockingManager.cs @@ -1138,7 +1138,7 @@ public double GridSplitterHeight new FrameworkPropertyMetadata((Style)null)); /// - /// Gets or sets the GridSplitterVerticalStyle property. This dependency property + /// Gets or sets the GridSplitterVerticalStyle property. This dependency property /// indicates the style to apply to the LayoutGridResizerControl when displayed vertically. /// public Style GridSplitterVerticalStyle @@ -1164,7 +1164,7 @@ public Style GridSplitterVerticalStyle new FrameworkPropertyMetadata((Style)null)); /// - /// Gets or sets the GridSplitterHorizontalStyle property. This dependency property + /// Gets or sets the GridSplitterHorizontalStyle property. This dependency property /// indicates the style to apply to the LayoutGridResizerControl when displayed horizontally. /// public Style GridSplitterHorizontalStyle @@ -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(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