Skip to content

Commit 10f2ce5

Browse files
committed
Code Quality: Prevent panes from flashing on startup
1 parent d5f9b6b commit 10f2ce5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Files.App/Views/Layouts/BaseLayoutPage.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,7 @@ private void RefreshItem(SelectorItem container, object item, bool inRecycleQueu
12451245
// when file loading completes.
12461246
// See https://github.com/files-community/Files/issues/15397
12471247
// See https://github.com/files-community/Files/issues/16530
1248-
1249-
if (ParentShellPageInstance.InstanceViewModel.FolderSettings.LayoutMode is not FolderLayoutModes.ColumnView)
1248+
if (ParentShellPageInstance.IsCurrentPane && ParentShellPageInstance.InstanceViewModel.FolderSettings.LayoutMode is not FolderLayoutModes.ColumnView)
12501249
ItemManipulationModel.FocusFileList();
12511250
});
12521251
}

0 commit comments

Comments
 (0)