diff --git a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs index 7fe360b7b8..686ff74dd0 100644 --- a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs +++ b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs @@ -35,7 +35,7 @@ namespace Wox.Plugin.SystemPlugins Title = metadata.ActionKeyword, SubTitle = string.Format("Activate {0} plugin", metadata.Name), Score = 100, - IcoPath = "Images/work.png", + IcoPath = metadata.FullIcoPath, Action = (c) => { context.API.ChangeQuery(metadataCopy.ActionKeyword + " "); diff --git a/Wox.Plugin/PluginMetadata.cs b/Wox.Plugin/PluginMetadata.cs index 0abc104242..2c83eb4454 100644 --- a/Wox.Plugin/PluginMetadata.cs +++ b/Wox.Plugin/PluginMetadata.cs @@ -52,7 +52,9 @@ namespace Wox.Plugin { 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:")) {