Async loading item images => huge performance improvements for old machines.

This commit is contained in:
qianlifeng
2014-07-16 18:52:00 +08:00
parent e7f000147b
commit 3a61a7992a
7 changed files with 71 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
namespace Wox.Plugin {
@@ -9,6 +10,19 @@ namespace Wox.Plugin {
public string SubTitle { get; set; }
public string IcoPath { get; set; }
public string FullIcoPath
{
get
{
if (IcoPath.StartsWith("data:"))
{
return IcoPath;
}
return Path.Combine(PluginDirectory, IcoPath);
}
}
/// <summary>
/// return true to hide wox after select result
/// </summary>
@@ -38,6 +52,8 @@ namespace Wox.Plugin {
return r.Title == Title && r.SubTitle == SubTitle;
}
public override string ToString() {
return Title + SubTitle;
}