mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
remove task.run outside
This commit is contained in:
parent
83ec8099a7
commit
303d3b9754
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ namespace Flow.Launcher.ViewModel
|
|||
public class ResultViewModel : BaseModel
|
||||
{
|
||||
private static PrivateFontCollection fontCollection = new();
|
||||
private static Dictionary<string, string> fonts = new();
|
||||
private static Dictionary<string, string> fonts = new();
|
||||
|
||||
public ResultViewModel(Result result, Settings settings)
|
||||
{
|
||||
|
|
@ -173,7 +173,7 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
|
||||
// We need to modify the property not field here to trigger the OnPropertyChanged event
|
||||
var i = await Task.Run(async () => await ImageLoader.LoadAsync(imagePath, loadFullImage));
|
||||
var i = await ImageLoader.LoadAsync(imagePath, loadFullImage);
|
||||
Image = i;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue