diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index a8bb052b5..340f0a62d 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -180,7 +180,7 @@ namespace Flow.Launcher.ViewModel { try { - image = Result.Icon(); + Image = await Task.Run(() => Result.Icon()).ConfigureAwait(false); return; } catch (Exception e) @@ -210,9 +210,7 @@ namespace Flow.Launcher.ViewModel var imagePath = Result.PreviewImage ?? Result.IcoPath; if (imagePath == null && Result.Icon != null) { - // For UWP programs from program plugin - // TODO: Consider https://github.com/Flow-Launcher/Flow.Launcher/pull/1492#issuecomment-1304829947 - PreviewImage = Result.Icon(); + PreviewImage = await Task.Run(() => Result.Icon()).ConfigureAwait(false); } else {