File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,8 @@ private void LoadPaneChanged()
440
440
{
441
441
var isHomePage = ! ( SidebarAdaptiveViewModel . PaneHolder ? . ActivePane ? . InstanceViewModel ? . IsPageTypeNotHome ?? false ) ;
442
442
var isMultiPane = SidebarAdaptiveViewModel . PaneHolder ? . IsMultiPaneActive ?? false ;
443
- var isBigEnough = MainWindow . Instance . Bounds . Width > 450 && MainWindow . Instance . Bounds . Height > 450 || RootGrid . ActualWidth > 700 && MainWindow . Instance . Bounds . Height > 360 ;
443
+ var isBigEnough = ! App . AppModel . IsMainWindowClosed &&
444
+ ( MainWindow . Instance . Bounds . Width > 450 && MainWindow . Instance . Bounds . Height > 450 || RootGrid . ActualWidth > 700 && MainWindow . Instance . Bounds . Height > 360 ) ;
444
445
445
446
ViewModel . ShouldPreviewPaneBeDisplayed = ( ! isHomePage || isMultiPane ) && isBigEnough ;
446
447
ViewModel . ShouldPreviewPaneBeActive = UserSettingsService . InfoPaneSettingsService . IsEnabled && ViewModel . ShouldPreviewPaneBeDisplayed ;
You can’t perform that action at this time.
0 commit comments