mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Async loading item images => huge performance improvements for old machines.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user