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 bf8999b commit c0ed63bCopy full SHA for c0ed63b
src/Files.App/ViewModels/UserControls/PreviewPaneViewModel.cs
@@ -290,13 +290,17 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
290
{
291
PreviewPaneState = PreviewPaneStates.LoadingPreview;
292
293
- if (previewSettingsService.ShowPreviewOnly)
+ if (previewSettingsService.ShowPreviewOnly ||
294
+ SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder)
295
296
loadCancellationTokenSource = new CancellationTokenSource();
297
await LoadPreviewControlAsync(loadCancellationTokenSource.Token, downloadItem);
298
}
299
else
300
+ {
301
await LoadBasicPreviewAsync();
302
+ return;
303
+ }
304
305
catch (Exception e)
306
0 commit comments