Skip to content

Commit c01a726

Browse files
committed
Added the "null" to the logger param
1 parent 59d2ed8 commit c01a726

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Files.App.Storage/Windows/Helpers/WindowsStorableHelpers.Icon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static partial class WindowsStorableHelpers
2929
{
3030
HRESULT hr = storable.TryGetThumbnail(size, options, out var thumbnailData).ThrowIfFailedOnDebug();
3131
return thumbnailData;
32-
});
32+
}, null);
3333
}
3434

3535
/// <summary>

src/Files.App.Storage/Windows/Managers/STATask.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public partial class STATask
1717
/// <param name="action">The work to execute in the STA thread.</param>
1818
/// <param name="logger">A logger to capture any exception that occurs during execution.</param>
1919
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
20-
public static Task Run(Action action, ILogger logger)
20+
public static Task Run(Action action, ILogger? logger)
2121
{
2222
var tcs = new TaskCompletionSource();
2323

@@ -56,7 +56,7 @@ public static Task Run(Action action, ILogger logger)
5656
/// <param name="func">The work to execute in the STA thread.</param>
5757
/// <param name="logger">A logger to capture any exception that occurs during execution.</param>
5858
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
59-
public static Task<T> Run<T>(Func<T> func, ILogger logger)
59+
public static Task<T> Run<T>(Func<T> func, ILogger? logger)
6060
{
6161
var tcs = new TaskCompletionSource<T>();
6262

@@ -93,7 +93,7 @@ public static Task<T> Run<T>(Func<T> func, ILogger logger)
9393
/// <param name="func">The work to execute in the STA thread.</param>
9494
/// <param name="logger">A logger to capture any exception that occurs during execution.</param>
9595
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
96-
public static Task Run(Func<Task> func, ILogger logger)
96+
public static Task Run(Func<Task> func, ILogger? logger)
9797
{
9898
var tcs = new TaskCompletionSource();
9999

@@ -132,7 +132,7 @@ public static Task Run(Func<Task> func, ILogger logger)
132132
/// <param name="func">The work to execute in the STA thread.</param>
133133
/// <param name="logger">A logger to capture any exception that occurs during execution.</param>
134134
/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns>
135-
public static Task<T?> Run<T>(Func<Task<T>> func, ILogger logger)
135+
public static Task<T?> Run<T>(Func<Task<T>> func, ILogger? logger)
136136
{
137137
var tcs = new TaskCompletionSource<T?>();
138138

src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public override async Task ExecutePinToSidebarCommand(WidgetCardItem? item)
216216
// NOTE: "pintohome" is an undocumented verb, which calls an undocumented COM class, windows.storage.dll!CPinToFrequentExecute : public IExecuteCommand, ...
217217
return windowsFile.TryInvokeContextMenuVerb("pintohome");
218218
}
219-
});
219+
}, null);
220220

221221
if (hr.ThrowIfFailedOnDebug().Failed)
222222
return;
@@ -253,7 +253,7 @@ public override async Task ExecuteUnpinFromSidebarCommand(WidgetCardItem? item)
253253
// NOTE: "remove" is for some shell folders where the "unpinfromhome" may not work
254254
return windowsFile.TryInvokeContextMenuVerbs(["unpinfromhome", "remove"], true);
255255
}
256-
});
256+
}, null);
257257

258258
if (hr.ThrowIfFailedOnDebug().Failed)
259259
return;

0 commit comments

Comments
 (0)