Skip to content

Commit 303d3b9

Browse files
committed
remove task.run outside
1 parent 83ec809 commit 303d3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Flow.Launcher.ViewModel
1515
public class ResultViewModel : BaseModel
1616
{
1717
private static PrivateFontCollection fontCollection = new();
18-
private static Dictionary<string, string> fonts = new();
18+
private static Dictionary<string, string> fonts = new();
1919

2020
public ResultViewModel(Result result, Settings settings)
2121
{
@@ -173,7 +173,7 @@ private async Task LoadImageAsync()
173173
}
174174

175175
// We need to modify the property not field here to trigger the OnPropertyChanged event
176-
var i = await Task.Run(async () => await ImageLoader.LoadAsync(imagePath, loadFullImage));
176+
var i = await ImageLoader.LoadAsync(imagePath, loadFullImage);
177177
Image = i;
178178
}
179179

0 commit comments

Comments
 (0)