mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Removed MSApiCodePack
This commit is contained in:
parent
af56370fa0
commit
20f61f5239
2 changed files with 2 additions and 6 deletions
|
|
@ -97,7 +97,6 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0" />
|
||||
<PackageReference Include="SharpVectors" Version="1.7.6" />
|
||||
<PackageReference Include="WindowsAPICodePack-Shell" Version="1.1.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ using Flow.Launcher.Plugin;
|
|||
using System.IO;
|
||||
using System.Drawing.Text;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.WindowsAPICodePack.Shell;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Flow.Launcher.ViewModel
|
||||
|
|
@ -194,8 +193,7 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
|
||||
// We need to modify the property not field here to trigger the OnPropertyChanged event
|
||||
//Image = await Task.Run(() => ImageLoader.Load(imagePath)).ConfigureAwait(false);
|
||||
Image = ShellFolder.FromParsingName(imagePath).Thumbnail.MediumBitmapSource;
|
||||
Image = await Task.Run(() => ImageLoader.Load(imagePath)).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -203,8 +201,7 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
var imagePath = Result.PreviewImage ?? Result.IcoPath;
|
||||
// We need to modify the property not field here to trigger the OnPropertyChanged event
|
||||
//PreviewImage = await Task.Run(() => ImageLoader.Load(imagePath, true)).ConfigureAwait(false);
|
||||
PreviewImage = ShellFolder.FromParsingName(imagePath).Thumbnail.LargeBitmapSource;
|
||||
PreviewImage = await Task.Run(() => ImageLoader.Load(imagePath, true)).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public Result Result { get; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue