Skip to content

Commit e5d8a73

Browse files
committed
Comments
1 parent 4e444dd commit e5d8a73

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Files.App/Views/Layouts/DetailsLayoutPage.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public sealed partial class DetailsLayoutPage : BaseGroupableLayoutPage
2929
// Fields
3030

3131
private ListedItem? _nextItemToSelect;
32+
33+
/// <summary>
34+
/// This reference is used to prevent unnecessary icon reloading by only reloading icons when their
35+
/// size changes, even if the layout size changes (since some layout sizes share the same icon size).
36+
/// </summary>
3237
private uint currentIconSize;
3338

3439
// Properties

src/Files.App/Views/Layouts/GridLayoutPage.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ public sealed partial class GridLayoutPage : BaseGroupableLayoutPage
2323
{
2424
// Fields
2525

26+
/// <summary>
27+
/// This reference is used to prevent unnecessary icon reloading by only reloading icons when their
28+
/// size changes, even if the layout size changes (since some layout sizes share the same icon size).
29+
/// </summary>
2630
private uint currentIconSize;
31+
2732
private volatile bool shouldSetVerticalScrollMode;
2833

2934
// Properties
@@ -41,7 +46,7 @@ public int RowHeightListView
4146
{
4247
get => LayoutSizeKindHelper.GetListViewRowHeight(UserSettingsService.LayoutSettingsService.ListViewSize);
4348
}
44-
49+
4550
/// <summary>
4651
/// Icon Box size in the List View layout. The value is increased by 4px to account for icon overlays.
4752
/// </summary>

0 commit comments

Comments
 (0)