From 59d9840d7b733caec19507c82d3fc079b6650f68 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Thu, 27 Mar 2014 17:19:50 +0800 Subject: [PATCH] Fix issues with web search icons --- Wox.Infrastructure/Storage/BaseStorage.cs | 1 + Wox.Plugin.System/WebSearchPlugin.cs | 3 +++ Wox/Wox.csproj | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) 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"