We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9d39c commit 5103a62Copy full SHA for 5103a62
src/Files.App/Views/PaneHolderPage.xaml.cs
@@ -1,7 +1,6 @@
1
// Copyright (c) 2023 Files Community
2
// Licensed under the MIT License. See the LICENSE.
3
4
-using Files.App.UserControls.TabBar;
5
using Microsoft.UI.Input;
6
using Microsoft.UI.Xaml;
7
using Microsoft.UI.Xaml.Controls;
@@ -80,7 +79,15 @@ public bool IsMultiPaneActive
80
79
=> IsRightPaneVisible;
81
82
public bool IsMultiPaneEnabled
83
- => MainWindow.Instance.Bounds.Width > DualPaneWidthThreshold;
+ {
+ get
84
85
+ if (App.AppModel.IsMainWindowClosed)
86
+ return false;
87
+ else
88
+ return MainWindow.Instance.Bounds.Width > DualPaneWidthThreshold;
89
+ }
90
91
92
private NavigationParams _NavParamsLeft;
93
public NavigationParams NavParamsLeft
0 commit comments