Skip to content

Commit 5e0adba

Browse files
authored
Remove await Task.Run for IconDelegate (#1704)
Let's trust plugin developer when they use that for icon
1 parent c0f46f2 commit 5e0adba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private async Task<ImageSource> LoadImageInternalAsync(string imagePath, Result.
188188
{
189189
try
190190
{
191-
var image = await Task.Run(() => icon()).ConfigureAwait(false);
191+
var image = icon();
192192
return image;
193193
}
194194
catch (Exception e)

0 commit comments

Comments
 (0)