diff --git a/Wox.Infrastructure/Storage/BaseStorage.cs b/Wox.Infrastructure/Storage/BaseStorage.cs index 0e64144ca6..4e1de3d28b 100644 --- a/Wox.Infrastructure/Storage/BaseStorage.cs +++ b/Wox.Infrastructure/Storage/BaseStorage.cs @@ -64,6 +64,7 @@ namespace Wox.Infrastructure.Storage { LoadDefaultConfig(); } + } public void Save() diff --git a/Wox.Plugin.System/WebSearchPlugin.cs b/Wox.Plugin.System/WebSearchPlugin.cs index 07f62f2057..f56f860926 100644 --- a/Wox.Plugin.System/WebSearchPlugin.cs +++ b/Wox.Plugin.System/WebSearchPlugin.cs @@ -77,6 +77,9 @@ namespace Wox.Plugin.System protected override void InitInternal(PluginInitContext context) { this.context = context; + + if (UserSettingStorage.Instance.WebSearches == null) + UserSettingStorage.Instance.WebSearches = UserSettingStorage.Instance.LoadDefaultWebSearches(); } } } diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index 3ba8509bce..8d3192af5e 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -382,8 +382,8 @@ - xcopy /Y $(ProjectDir)Themes\*.* $(TargetDir)Themes\ -xcopy /Y $(ProjectDir)Images\*.* $(TargetDir)Images\ + xcopy /Y $(ProjectDir)Themes\* $(TargetDir)Themes\ +xcopy /Y /E $(ProjectDir)Images\* $(TargetDir)Images\ del /s /q "$(TargetDir)*.xml"