Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/Files.App/Views/PaneHolderPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.UserControls.TabBar;
using Microsoft.UI.Input;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand Down Expand Up @@ -80,7 +79,15 @@ public bool IsMultiPaneActive
=> IsRightPaneVisible;

public bool IsMultiPaneEnabled
=> MainWindow.Instance.Bounds.Width > DualPaneWidthThreshold;
{
get
{
if (App.AppModel.IsMainWindowClosed == true)
return false;
else
return MainWindow.Instance.Bounds.Width > DualPaneWidthThreshold;
}
}

private NavigationParams _NavParamsLeft;
public NavigationParams NavParamsLeft
Expand Down