From 00c8ebbfe82325cab6ba77e89dd27db323fdbfda Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Thu, 18 Dec 2014 12:20:58 +0800 Subject: [PATCH] Revert "Add crashreproter" This reverts commit ad81dfa001493272d1ea7e4a19ae74ca65c84622. --- .../ThirdpartyPluginIndicator.cs | 2 +- Wox.sln | 2 +- Wox/Helper/ErrorReporting/ErrorReporting.cs | 20 +------------------ Wox/MainWindow.xaml.cs | 7 ++++--- Wox/Wox.csproj | 3 --- Wox/packages.config | 1 - 6 files changed, 7 insertions(+), 28 deletions(-) diff --git a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs index 31e3ab0acf..686ff74dd0 100644 --- a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs +++ b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs @@ -80,7 +80,7 @@ namespace Wox.Plugin.SystemPlugins public override string IcoPath { - get { return @"Images\work.png"; } + get { return @"Images\list.png"; } } public override string Description diff --git a/Wox.sln b/Wox.sln index a8b3e304fe..120076914c 100644 --- a/Wox.sln +++ b/Wox.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 +VisualStudioVersion = 12.0.30723.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Test", "Wox.Test\Wox.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}" EndProject diff --git a/Wox/Helper/ErrorReporting/ErrorReporting.cs b/Wox/Helper/ErrorReporting/ErrorReporting.cs index 11a42ac7e1..06e0eae107 100644 --- a/Wox/Helper/ErrorReporting/ErrorReporting.cs +++ b/Wox/Helper/ErrorReporting/ErrorReporting.cs @@ -9,28 +9,15 @@ using System.Windows.Threading; using System.Xml; using Microsoft.Win32; using Wox.Infrastructure.Logger; -using CrashReporterDotNET; namespace Wox.Helper.ErrorReporting { public static class ErrorReporting { - private static void ReportCrash(Exception exception) - { - var reportCrash = new ReportCrash - { - ToEmail = "qianlf2008@163.com" - }; - - reportCrash.Send(exception); - } - public static void UnhandledExceptionHandle(object sender, System.UnhandledExceptionEventArgs e) { if (System.Diagnostics.Debugger.IsAttached) return; - ReportCrash((Exception)e.ExceptionObject); - return; string error = CreateExceptionReport("System.AppDomain.UnhandledException", e.ExceptionObject); //e.IsTerminating is always true in most times, so try to avoid use this property @@ -43,9 +30,6 @@ namespace Wox.Helper.ErrorReporting { if (Debugger.IsAttached) return; - ReportCrash(e.Exception); - return; - e.Handled = true; string error = CreateExceptionReport("System.Windows.Application.DispatcherUnhandledException", e.Exception); @@ -55,8 +39,7 @@ namespace Wox.Helper.ErrorReporting public static void ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { if (Debugger.IsAttached) return; - ReportCrash(e.Exception); - return; + string error = CreateExceptionReport("System.Windows.Forms.Application.ThreadException", e.Exception); Log.Fatal(error); @@ -288,7 +271,6 @@ namespace Wox.Helper.ErrorReporting var dialog = new WPFErrorReportingDialog(error, title, exceptionObject); dialog.ShowDialog(); } - private static void ShowWPFMessageBox(string error, string title) { System.Windows.MessageBox.Show(error, title, MessageBoxButton.OK, MessageBoxImage.Error, diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index 2a2b6eea1a..cfc220ff9b 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -222,12 +222,13 @@ namespace Wox private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { - if (UserSettingStorage.Instance.WindowLeft == 0 && UserSettingStorage.Instance.WindowTop == 0) + if (UserSettingStorage.Instance.WindowLeft == 0 + && UserSettingStorage.Instance.WindowTop == 0) { Left = UserSettingStorage.Instance.WindowLeft = (SystemParameters.PrimaryScreenWidth - ActualWidth) / 2; Top = UserSettingStorage.Instance.WindowTop - = (SystemParameters.PrimaryScreenHeight - ActualHeight) / 6; + = (SystemParameters.PrimaryScreenHeight - ActualHeight) / 5; } else { @@ -547,7 +548,7 @@ namespace Wox break; case Key.F1: - Process.Start("http://doc.getwox.com"); + Process.Start("https://github.com/qianlifeng/Wox/wiki/Wox-Function-Guide"); break; case Key.Enter: diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj index a35be3687f..0d571690fc 100644 --- a/Wox/Wox.csproj +++ b/Wox/Wox.csproj @@ -60,9 +60,6 @@ - - ..\packages\CrashReporterdotNet.1.5\lib\net20\CrashReporter.NET.dll - False ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll diff --git a/Wox/packages.config b/Wox/packages.config index 68440ecb8e..35531b8872 100644 --- a/Wox/packages.config +++ b/Wox/packages.config @@ -1,6 +1,5 @@  -