From 6875bdb6957217207bc4e50561429198d06fdd27 Mon Sep 17 00:00:00 2001 From: d2dyno006 <53011783+d2dyno006@users.noreply.github.com> Date: Sat, 15 Feb 2025 11:49:48 +0100 Subject: [PATCH] Formatting --- .../UserControls/Pane/ShelfPane.xaml.cs | 22 +++++++++---------- .../ViewModels/Layouts/BaseLayoutViewModel.cs | 8 +++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs b/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs index 838ac36dd63a..21a1aff1ff47 100644 --- a/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs +++ b/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs @@ -65,23 +65,23 @@ private async void Shelf_Drop(object sender, DragEventArgs e) } } - private void ListView_DragItemsStarting(object sender, DragItemsStartingEventArgs e) - { - var apidl = SafetyExtensions.IgnoreExceptions(() => e.Items - .Cast() - .Select(x => new ShellItem(x.Inner.Id).PIDL) - .ToArray()); + private void ListView_DragItemsStarting(object sender, DragItemsStartingEventArgs e) + { + var apidl = SafetyExtensions.IgnoreExceptions(() => e.Items + .Cast() + .Select(x => new ShellItem(x.Inner.Id).PIDL) + .ToArray()); - if (apidl is null) - return; + if (apidl is null) + return; - if (!Shell32.SHGetDesktopFolder(out var pDesktop).Succeeded) + if (!Shell32.SHGetDesktopFolder(out var pDesktop).Succeeded) return; - if (!Shell32.SHGetIDListFromObject(pDesktop, out var pDesktopPidl).Succeeded) + if (!Shell32.SHGetIDListFromObject(pDesktop, out var pDesktopPidl).Succeeded) return; - e.Data.Properties["Files_ActionBinder"] = "Files_ShelfBinder"; + e.Data.Properties["Files_ActionBinder"] = "Files_ShelfBinder"; if (!Shell32.SHCreateDataObject(pDesktopPidl, apidl, null, out var ppDataObject).Succeeded) return; diff --git a/src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs b/src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs index e6236ed434c9..5896e423930e 100644 --- a/src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs +++ b/src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs @@ -116,7 +116,7 @@ public async Task DragOverAsync(DragEventArgs e) { // As long as one file doesn't already belong to this folder if (_associatedInstance.InstanceViewModel.IsPageTypeSearchResults || draggedItems.Any() && - draggedItems.AreItemsAlreadyInFolder(_associatedInstance.ShellViewModel.WorkingDirectory)) + draggedItems.AreItemsAlreadyInFolder(_associatedInstance.ShellViewModel.WorkingDirectory)) { e.AcceptedOperation = DataPackageOperation.None; } @@ -157,9 +157,9 @@ public async Task DragOverAsync(DragEventArgs e) e.AcceptedOperation = DataPackageOperation.Move | DataPackageOperation.Copy; } else if (draggedItems.Any(x => - x.Item is ZipStorageFile || - x.Item is ZipStorageFolder) || - ZipStorageFolder.IsZipPath(pwd)) + x.Item is ZipStorageFile || + x.Item is ZipStorageFolder) || + ZipStorageFolder.IsZipPath(pwd)) { e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalizedResource(), folderName); e.AcceptedOperation = DataPackageOperation.Copy;