File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
src/Files.App/Views/Layouts Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ public sealed partial class DetailsLayoutPage : BaseGroupableLayoutPage
37
37
/// </summary>
38
38
private uint currentIconSize ;
39
39
40
- private RectangleSelection ? _rectangleSelection ;
41
-
42
40
// Properties
43
41
44
42
protected override ListViewBase ListViewBase => FileList ;
@@ -79,8 +77,8 @@ public DetailsLayoutPage() : base()
79
77
{
80
78
InitializeComponent ( ) ;
81
79
DataContext = this ;
82
- _rectangleSelection = RectangleSelection . Create ( FileList , SelectionRectangle , FileList_SelectionChanged ) ;
83
- _rectangleSelection . SelectionEnded += SelectionRectangle_SelectionEnded ;
80
+ var selectionRectangle = RectangleSelection . Create ( FileList , SelectionRectangle , FileList_SelectionChanged ) ;
81
+ selectionRectangle . SelectionEnded += SelectionRectangle_SelectionEnded ;
84
82
85
83
UpdateSortOptionsCommand = new RelayCommand < string > ( x =>
86
84
{
@@ -204,11 +202,6 @@ protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
204
202
FolderSettings . SortOptionPreferenceUpdated -= FolderSettings_SortOptionPreferenceUpdated ;
205
203
ParentShellPageInstance . ShellViewModel . PageTypeUpdated -= FilesystemViewModel_PageTypeUpdated ;
206
204
UserSettingsService . LayoutSettingsService . PropertyChanged -= LayoutSettingsService_PropertyChanged ;
207
- if ( _rectangleSelection is not null )
208
- {
209
- _rectangleSelection . SelectionEnded -= SelectionRectangle_SelectionEnded ;
210
- _rectangleSelection = null ;
211
- }
212
205
}
213
206
214
207
private void LayoutSettingsService_PropertyChanged ( object ? sender , PropertyChangedEventArgs e )
You can’t perform that action at this time.
0 commit comments