From b63b9668884dc4b910f4dfd77a40e177dcfd93cc Mon Sep 17 00:00:00 2001 From: Noisrev Date: Thu, 12 Jan 2023 23:01:28 +0800 Subject: [PATCH] Fix types and variable names --- .../LayoutAnchorableFloatingWindowControl.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs index 381b755a..84743360 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs @@ -437,12 +437,12 @@ private void OnExecuteCloseWindowCommand(object parameter) private void ActiveItemOfSinglePane(bool isActive) { - var layoutDocumentPane = _model.Descendents().OfType() + var layoutAnchorablePane = _model.Descendents().OfType() .FirstOrDefault(p => p.ChildrenCount > 0 && p.SelectedContent != null); - if (layoutDocumentPane != null) + if (layoutAnchorablePane != null) { - layoutDocumentPane.SelectedContent.IsActive = isActive; + layoutAnchorablePane.SelectedContent.IsActive = isActive; } // When the floating tool window is mixed with the floating document window // and the document pane in the floating document window is dragged out. @@ -529,10 +529,10 @@ private void ActiveItemOfMultiPane(bool isActive) { if (isActive) { - var documentPane = FindPaneControlByMousePoint(); - if (documentPane != null) + var anchorablePane = FindPaneControlByMousePoint(); + if (anchorablePane != null) { - var model = (LayoutAnchorablePane)documentPane.Model; + var model = (LayoutAnchorablePane)anchorablePane.Model; if (model.SelectedContent != null) { model.SelectedContent.IsActive = true;