diff --git a/Wox.Plugin/Result.cs b/Wox.Plugin/Result.cs
index f0c7fd4460..310f00b3f6 100644
--- a/Wox.Plugin/Result.cs
+++ b/Wox.Plugin/Result.cs
@@ -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);
+ }
+ }
+
///
/// return true to hide wox after select result
///
@@ -38,6 +52,8 @@ namespace Wox.Plugin {
return r.Title == Title && r.SubTitle == SubTitle;
}
+
+
public override string ToString() {
return Title + SubTitle;
}
diff --git a/Wox/Converters/AsyncConverter.cs b/Wox/Converters/AsyncConverter.cs
new file mode 100644
index 0000000000..5df3bc7b5f
--- /dev/null
+++ b/Wox/Converters/AsyncConverter.cs
@@ -0,0 +1,38 @@
+using System;
+using System.ComponentModel;
+using System.Threading;
+using System.Windows.Data;
+using System.Windows.Threading;
+
+namespace Wox.Converters
+{
+ public class AsyncTask : INotifyPropertyChanged
+ {
+ public AsyncTask(Func