remove annoying fail prompt #1339

This commit is contained in:
bao-qian
2017-04-05 13:59:16 +01:00
parent 3554d9fda2
commit cfa7d9820b
3 changed files with 3 additions and 19 deletions

View File

@@ -31,9 +31,7 @@ namespace Wox.Core
} }
catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException)
{ {
var checkUpdatesFailed = Translater.GetTranslation("checkUpdatesFailed"); Log.Exception($"|Updater.UpdateApp|Please check your connection and proxy settings to api.github.com.", e);
Log.Exception($"|Updater.UpdateApp|{checkUpdatesFailed}", e);
MessageBox.Show(checkUpdatesFailed);
return; return;
} }
@@ -44,9 +42,7 @@ namespace Wox.Core
} }
catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException)
{ {
var checkUpdatesFailed = Translater.GetTranslation("checkUpdatesFailed"); Log.Exception($"|Updater.UpdateApp|Check your connection and proxy settings to api.github.com.", e);
Log.Exception($"|Updater.UpdateApp|{checkUpdatesFailed}", e);
MessageBox.Show(checkUpdatesFailed);
m.Dispose(); m.Dispose();
return; return;
} }
@@ -62,9 +58,7 @@ namespace Wox.Core
} }
catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException)
{ {
var downloadUpdatesFailed = Translater.GetTranslation("downloadUpdatesFailed"); Log.Exception($"|Updater.UpdateApp|Check your connection and proxy settings to github-cloud.s3.amazonaws.com.", e);
Log.Exception($"|Updater.UpdateApp|{downloadUpdatesFailed}", e);
MessageBox.Show(downloadUpdatesFailed);
m.Dispose(); m.Dispose();
return; return;
} }

View File

@@ -85,11 +85,6 @@
<system:String x:Key="about_activate_times">你已经激活了Wox {0} 次</system:String> <system:String x:Key="about_activate_times">你已经激活了Wox {0} 次</system:String>
<system:String x:Key="checkUpdates">检查更新</system:String> <system:String x:Key="checkUpdates">检查更新</system:String>
<system:String x:Key="newVersionTips">发现新版本 {0} , 请重启 wox。</system:String> <system:String x:Key="newVersionTips">发现新版本 {0} , 请重启 wox。</system:String>
<system:String x:Key="checkUpdatesFailed">检查更新失败,请检查你到 api.github.com 的网络连接和代理设置。</system:String>
<system:String x:Key="downloadUpdatesFailed">
下载更新失败,请检查你到 github-cloud.s3.amazonaws.com, 的网络连接和代理设置,
或去 https://github.com/Wox-launcher/Wox/releases 手动下载更新。
</system:String>
<system:String x:Key="releaseNotes">更新说明:</system:String> <system:String x:Key="releaseNotes">更新说明:</system:String>
<!--Action Keyword 设置对话框--> <!--Action Keyword 设置对话框-->

View File

@@ -81,11 +81,6 @@
<system:String x:Key="about_activate_times">您已經啟動了 Wox {0} 次</system:String> <system:String x:Key="about_activate_times">您已經啟動了 Wox {0} 次</system:String>
<system:String x:Key="checkUpdates">檢查更新</system:String> <system:String x:Key="checkUpdates">檢查更新</system:String>
<system:String x:Key="newVersionTips">發現有新版本 {0} 請重新啟動 Wox。</system:String> <system:String x:Key="newVersionTips">發現有新版本 {0} 請重新啟動 Wox。</system:String>
<system:String x:Key="checkUpdatesFailed">检查更新失败,请检查你到 api.github.com 的网络连接和代理设置。</system:String>
<system:String x:Key="downloadUpdatesFailed">
下载更新失败,请检查你到 github-cloud.s3.amazonaws.com, 的网络连接和代理设置,
或去 https://github.com/Wox-launcher/Wox/releases 手动下载更新。
</system:String>
<system:String x:Key="releaseNotes">更新說明:</system:String> <system:String x:Key="releaseNotes">更新說明:</system:String>
<!--Action Keyword 設定對話框--> <!--Action Keyword 設定對話框-->