Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,17 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
{
PreviewPaneState = PreviewPaneStates.LoadingPreview;

if (previewSettingsService.ShowPreviewOnly)
if (previewSettingsService.ShowPreviewOnly ||
SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder)
{
loadCancellationTokenSource = new CancellationTokenSource();
await LoadPreviewControlAsync(loadCancellationTokenSource.Token, downloadItem);
}
else
{
await LoadBasicPreviewAsync();
return;
Copy link
Member

@hishitetsu hishitetsu Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this trying to fix? I don't think this return changes anything.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return wasn't needed in the end, I had to make some other changes in 68cccf0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I missed it.

}
}
catch (Exception e)
{
Expand Down