Add log for storage crashing

This commit is contained in:
qianlifeng
2015-02-10 23:48:09 +08:00
parent e767cee4c0
commit 815d911143
4 changed files with 5 additions and 9 deletions

View File

@@ -130,14 +130,7 @@ namespace Wox.Core.UserSettings
OpacityMode = OpacityMode.Normal; OpacityMode = OpacityMode.Normal;
LeaveCmdOpen = false; LeaveCmdOpen = false;
HideWhenDeactive = false; HideWhenDeactive = false;
CustomPluginHotkeys = new List<CustomPluginHotkey>() CustomPluginHotkeys = new List<CustomPluginHotkey>();
{
new CustomPluginHotkey()
{
ActionKeyword = "history ",
Hotkey = "Alt + H"
}
};
return this; return this;
} }

View File

@@ -55,6 +55,7 @@ namespace Wox.CrashReporter
private void SendReport() private void SendReport()
{ {
Hide();
ThreadPool.QueueUserWorkItem(o => ThreadPool.QueueUserWorkItem(o =>
{ {
string reproduceSteps = new TextRange(tbReproduceSteps.Document.ContentStart, tbReproduceSteps.Document.ContentEnd).Text; string reproduceSteps = new TextRange(tbReproduceSteps.Document.ContentStart, tbReproduceSteps.Document.ContentEnd).Text;

View File

@@ -56,8 +56,9 @@ namespace Wox.Infrastructure.Storage
} }
} }
} }
catch (Exception) catch (Exception e)
{ {
Log.Error(e);
serializedObject = LoadDefault(); serializedObject = LoadDefault();
#if (DEBUG) #if (DEBUG)
{ {

View File

@@ -122,6 +122,7 @@
<Compile Include="Converters\OpacityModeConverter.cs" /> <Compile Include="Converters\OpacityModeConverter.cs" />
<Compile Include="Converters\StringEmptyConverter.cs" /> <Compile Include="Converters\StringEmptyConverter.cs" />
<Compile Include="Converters\StringNullOrEmptyToVisibilityConverter.cs" /> <Compile Include="Converters\StringNullOrEmptyToVisibilityConverter.cs" />
<Compile Include="Helper\SendToManager.cs" />
<Compile Include="ImageLoader\ImageCacheStroage.cs" /> <Compile Include="ImageLoader\ImageCacheStroage.cs" />
<Compile Include="Storage\QueryHistoryStorage.cs" /> <Compile Include="Storage\QueryHistoryStorage.cs" />
<Compile Include="Storage\TopMostRecordStorage.cs" /> <Compile Include="Storage\TopMostRecordStorage.cs" />