diff --git a/Plugins/Wox.Plugin.WebSearch/WebSearch.cs b/Plugins/Wox.Plugin.WebSearch/WebSearch.cs index 5b4b734a1e..8f513e0b38 100644 --- a/Plugins/Wox.Plugin.WebSearch/WebSearch.cs +++ b/Plugins/Wox.Plugin.WebSearch/WebSearch.cs @@ -19,16 +19,20 @@ namespace Wox.Plugin.WebSearch get { return _icon; } set { - _icon = value; + _icon = value; IconPath = Path.Combine(WebSearchPlugin.PluginDirectory, WebSearchPlugin.ImageDirectory, value); } } + /// /// All icon should be put under Images directory /// [NotNull] [JsonIgnore] - internal string IconPath { get; private set; } + internal string IconPath { get; private set; } = Path.Combine + ( + WebSearchPlugin.PluginDirectory, WebSearchPlugin.ImageDirectory, DefaultIcon + ); public string Url { get; set; } public bool Enabled { get; set; }