Allow plugin initialization when application starts

This commit is contained in:
Paddy Xu
2017-06-03 13:07:48 +03:00
parent 5886ee5c12
commit fb394288dd
12 changed files with 59 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
using System.Linq;
using System.Reflection;
using System.Windows;
using ImageMagick;
namespace QuickLook.Plugin.ImageViewer
{
@@ -23,6 +24,11 @@ namespace QuickLook.Plugin.ImageViewer
public int Priority => int.MaxValue;
public bool AllowsTransparency => true;
public void Init()
{
new MagickImage().Dispose();
}
public bool CanHandle(string path)
{
if (Directory.Exists(path))