Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 16, 2025
1 parent de0ea8c commit 4e444dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/Helpers/Layout/LayoutSizeKindHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public static int GetListViewRowHeight(ListViewSizeKind listViewSizeKind)
}

/// <summary>
/// Gets the desired icon size for specified layout
/// Gets the desired icon size for the requested layout
/// </summary>
/// <param name="listViewSizeKind"></param>
/// <param name="folderLayoutMode"></param>
/// <returns></returns>
public static uint GetIconSize(FolderLayoutModes folderLayoutMode)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Files.App/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,8 @@ private async Task LoadThumbnailAsync(ListedItem item, CancellationToken cancell
var loadNonCachedThumbnail = false;
var thumbnailSize = LayoutSizeKindHelper.GetIconSize(folderSettings.LayoutMode);
var returnIconOnly = UserSettingsService.FoldersSettingsService.ShowThumbnails == false || thumbnailSize < 48;

// TODO Remove this property when all the layouts can support different icon sizes
var useCurrentScale = folderSettings.LayoutMode == FolderLayoutModes.DetailsView || folderSettings.LayoutMode == FolderLayoutModes.ListView;

byte[]? result = null;
Expand Down

0 comments on commit 4e444dd

Please sign in to comment.