Skip to content

Commit

Permalink
Fix types and variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenveo committed Jan 12, 2023
1 parent 895646c commit b63b966
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,12 @@ private void OnExecuteCloseWindowCommand(object parameter)

private void ActiveItemOfSinglePane(bool isActive)
{
var layoutDocumentPane = _model.Descendents().OfType<LayoutDocumentPane>()
var layoutAnchorablePane = _model.Descendents().OfType<LayoutAnchorablePane>()
.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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b63b966

Please sign in to comment.