Skip to content

Commit c0ed63b

Browse files
authored
Fix: Fixed issue with viewing folder details (#13758)
1 parent bf8999b commit c0ed63b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Files.App/ViewModels/UserControls/PreviewPaneViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,17 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
290290
{
291291
PreviewPaneState = PreviewPaneStates.LoadingPreview;
292292

293-
if (previewSettingsService.ShowPreviewOnly)
293+
if (previewSettingsService.ShowPreviewOnly ||
294+
SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder)
294295
{
295296
loadCancellationTokenSource = new CancellationTokenSource();
296297
await LoadPreviewControlAsync(loadCancellationTokenSource.Token, downloadItem);
297298
}
298299
else
300+
{
299301
await LoadBasicPreviewAsync();
302+
return;
303+
}
300304
}
301305
catch (Exception e)
302306
{

0 commit comments

Comments
 (0)