display plugin icons in 'activate plugin' query

This commit is contained in:
Ioannis G 2014-12-09 17:42:20 +02:00
parent 217a7a34f8
commit b489e54da4
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,7 @@ namespace Wox.Plugin.SystemPlugins
Title = metadata.ActionKeyword, Title = metadata.ActionKeyword,
SubTitle = string.Format("Activate {0} plugin", metadata.Name), SubTitle = string.Format("Activate {0} plugin", metadata.Name),
Score = 100, Score = 100,
IcoPath = "Images/work.png", IcoPath = metadata.FullIcoPath,
Action = (c) => Action = (c) =>
{ {
context.API.ChangeQuery(metadataCopy.ActionKeyword + " "); context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");

View File

@ -52,7 +52,9 @@ namespace Wox.Plugin
{ {
get get
{ {
if (string.IsNullOrEmpty(IcoPath)) return string.Empty; // Return the default icon if IcoPath is empty
if (string.IsNullOrEmpty(IcoPath))
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Images\\work.png");
if (IcoPath.StartsWith("data:")) if (IcoPath.StartsWith("data:"))
{ {