Skip to content

Commit 6875bdb

Browse files
committed
Formatting
1 parent 17d1b5c commit 6875bdb

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/Files.App/UserControls/Pane/ShelfPane.xaml.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,23 @@ private async void Shelf_Drop(object sender, DragEventArgs e)
6565
}
6666
}
6767

68-
private void ListView_DragItemsStarting(object sender, DragItemsStartingEventArgs e)
69-
{
70-
var apidl = SafetyExtensions.IgnoreExceptions(() => e.Items
71-
.Cast<ShelfItem>()
72-
.Select(x => new ShellItem(x.Inner.Id).PIDL)
73-
.ToArray());
68+
private void ListView_DragItemsStarting(object sender, DragItemsStartingEventArgs e)
69+
{
70+
var apidl = SafetyExtensions.IgnoreExceptions(() => e.Items
71+
.Cast<ShelfItem>()
72+
.Select(x => new ShellItem(x.Inner.Id).PIDL)
73+
.ToArray());
7474

75-
if (apidl is null)
76-
return;
75+
if (apidl is null)
76+
return;
7777

78-
if (!Shell32.SHGetDesktopFolder(out var pDesktop).Succeeded)
78+
if (!Shell32.SHGetDesktopFolder(out var pDesktop).Succeeded)
7979
return;
8080

81-
if (!Shell32.SHGetIDListFromObject(pDesktop, out var pDesktopPidl).Succeeded)
81+
if (!Shell32.SHGetIDListFromObject(pDesktop, out var pDesktopPidl).Succeeded)
8282
return;
8383

84-
e.Data.Properties["Files_ActionBinder"] = "Files_ShelfBinder";
84+
e.Data.Properties["Files_ActionBinder"] = "Files_ShelfBinder";
8585
if (!Shell32.SHCreateDataObject(pDesktopPidl, apidl, null, out var ppDataObject).Succeeded)
8686
return;
8787

src/Files.App/ViewModels/Layouts/BaseLayoutViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public async Task DragOverAsync(DragEventArgs e)
116116
{
117117
// As long as one file doesn't already belong to this folder
118118
if (_associatedInstance.InstanceViewModel.IsPageTypeSearchResults || draggedItems.Any() &&
119-
draggedItems.AreItemsAlreadyInFolder(_associatedInstance.ShellViewModel.WorkingDirectory))
119+
draggedItems.AreItemsAlreadyInFolder(_associatedInstance.ShellViewModel.WorkingDirectory))
120120
{
121121
e.AcceptedOperation = DataPackageOperation.None;
122122
}
@@ -157,9 +157,9 @@ public async Task DragOverAsync(DragEventArgs e)
157157
e.AcceptedOperation = DataPackageOperation.Move | DataPackageOperation.Copy;
158158
}
159159
else if (draggedItems.Any(x =>
160-
x.Item is ZipStorageFile ||
161-
x.Item is ZipStorageFolder) ||
162-
ZipStorageFolder.IsZipPath(pwd))
160+
x.Item is ZipStorageFile ||
161+
x.Item is ZipStorageFolder) ||
162+
ZipStorageFolder.IsZipPath(pwd))
163163
{
164164
e.DragUIOverride.Caption = string.Format("CopyToFolderCaptionText".GetLocalizedResource(), folderName);
165165
e.AcceptedOperation = DataPackageOperation.Copy;

0 commit comments

Comments
 (0)