fix #252 web search items lost after restart Wox

This commit is contained in:
qianlifeng
2015-02-20 21:14:15 +08:00
parent 21e5f33487
commit b1a97eca39
9 changed files with 23 additions and 18 deletions

View File

@@ -2,7 +2,6 @@
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using Wox.Core.UserSettings;
namespace Wox.Plugin.WebSearch
{
@@ -111,7 +110,7 @@ namespace Wox.Plugin.WebSearch
if (e.AddedItems.Count > 0)
{
WebSearchStorage.Instance.WebSearchSuggestionSource = ((ComboBoxItem) e.AddedItems[0]).Content.ToString();
UserSettingStorage.Instance.Save();
WebSearchStorage.Instance.Save();
}
}
}