We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7eb62 commit 4856399Copy full SHA for 4856399
Flow.Launcher/ViewModel/ResultViewModel.cs
@@ -180,7 +180,7 @@ private async Task LoadImageAsync()
180
{
181
try
182
183
- image = Result.Icon();
+ Image = await Task.Run(() => Result.Icon()).ConfigureAwait(false);
184
return;
185
}
186
catch (Exception e)
@@ -210,9 +210,7 @@ private async Task LoadPreviewImageAsync()
210
var imagePath = Result.PreviewImage ?? Result.IcoPath;
211
if (imagePath == null && Result.Icon != null)
212
213
- // For UWP programs from program plugin
214
- // TODO: Consider https://github.com/Flow-Launcher/Flow.Launcher/pull/1492#issuecomment-1304829947
215
- PreviewImage = Result.Icon();
+ PreviewImage = await Task.Run(() => Result.Icon()).ConfigureAwait(false);
216
217
else
218
0 commit comments