Wrap non async part in task

This commit is contained in:
Garulf 2022-11-23 02:03:15 -05:00
parent 67443fdde8
commit 3665bd9efc

View file

@ -136,7 +136,7 @@ namespace Flow.Launcher.Infrastructure.Image
path = Path.Combine(Constant.ProgramDirectory, "Images", Path.GetFileName(path)); path = Path.Combine(Constant.ProgramDirectory, "Images", Path.GetFileName(path));
} }
imageResult = GetThumbnailResult(ref path, loadFullImage); imageResult = await Task.Run(() => GetThumbnailResult(ref path, loadFullImage));
} }
catch (System.Exception e) catch (System.Exception e)
{ {