Move ImageLoader to Wox.Infrastructure, part 2

This commit is contained in:
bao-qian
2016-04-26 01:20:10 +01:00
parent fd139d4903
commit fc2d7b41d8
5 changed files with 12 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ using Wox.CommandArgs;
using Wox.Core.Plugin;
using Wox.Helper;
using Wox.Infrastructure;
using Wox.Infrastructure.Image;
using Wox.ViewModel;
using Stopwatch = Wox.Infrastructure.Stopwatch;
@@ -20,7 +21,7 @@ namespace Wox
{
private const string Unique = "Wox_Unique_Application_Mutex";
public static MainWindow Window { get; private set; }
public static ImageLoader.ImageLoader ImageLoader;
public static ImageLoader ImageLoader;
public static PublicAPIInstance API { get; private set; }
[STAThread]
@@ -43,7 +44,7 @@ namespace Wox
WoxDirectroy.Executable = Directory.GetParent(Assembly.GetExecutingAssembly().Location).ToString();
RegisterUnhandledException();
ImageLoader = new ImageLoader.ImageLoader();
ImageLoader = new ImageLoader();
Task.Factory.StartNew(ImageLoader.PreloadImages);
PluginManager.Initialize();