File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/Files.App/Views/Layouts Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments