From cfa7d9820bbb37eff5f3dc9e85cc8c8d3e1f3968 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Wed, 5 Apr 2017 13:59:16 +0100 Subject: [PATCH] remove annoying fail prompt #1339 --- Wox.Core/Updater.cs | 12 +++--------- Wox/Languages/zh-cn.xaml | 5 ----- Wox/Languages/zh-tw.xaml | 5 ----- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Wox.Core/Updater.cs b/Wox.Core/Updater.cs index 5c54aff4fd..c71479bd54 100644 --- a/Wox.Core/Updater.cs +++ b/Wox.Core/Updater.cs @@ -31,9 +31,7 @@ namespace Wox.Core } catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) { - var checkUpdatesFailed = Translater.GetTranslation("checkUpdatesFailed"); - Log.Exception($"|Updater.UpdateApp|{checkUpdatesFailed}", e); - MessageBox.Show(checkUpdatesFailed); + Log.Exception($"|Updater.UpdateApp|Please check your connection and proxy settings to api.github.com.", e); return; } @@ -44,9 +42,7 @@ namespace Wox.Core } catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) { - var checkUpdatesFailed = Translater.GetTranslation("checkUpdatesFailed"); - Log.Exception($"|Updater.UpdateApp|{checkUpdatesFailed}", e); - MessageBox.Show(checkUpdatesFailed); + Log.Exception($"|Updater.UpdateApp|Check your connection and proxy settings to api.github.com.", e); m.Dispose(); return; } @@ -62,9 +58,7 @@ namespace Wox.Core } catch (Exception e) when (e is HttpRequestException || e is WebException || e is SocketException) { - var downloadUpdatesFailed = Translater.GetTranslation("downloadUpdatesFailed"); - Log.Exception($"|Updater.UpdateApp|{downloadUpdatesFailed}", e); - MessageBox.Show(downloadUpdatesFailed); + Log.Exception($"|Updater.UpdateApp|Check your connection and proxy settings to github-cloud.s3.amazonaws.com.", e); m.Dispose(); return; } diff --git a/Wox/Languages/zh-cn.xaml b/Wox/Languages/zh-cn.xaml index 7332046b99..d471a41113 100644 --- a/Wox/Languages/zh-cn.xaml +++ b/Wox/Languages/zh-cn.xaml @@ -85,11 +85,6 @@ 你已经激活了Wox {0} 次 检查更新 发现新版本 {0} , 请重启 wox。 - 检查更新失败,请检查你到 api.github.com 的网络连接和代理设置。 - - 下载更新失败,请检查你到 github-cloud.s3.amazonaws.com, 的网络连接和代理设置, - 或去 https://github.com/Wox-launcher/Wox/releases 手动下载更新。 - 更新说明: diff --git a/Wox/Languages/zh-tw.xaml b/Wox/Languages/zh-tw.xaml index 61ca37344f..b32c925cc1 100644 --- a/Wox/Languages/zh-tw.xaml +++ b/Wox/Languages/zh-tw.xaml @@ -81,11 +81,6 @@ 您已經啟動了 Wox {0} 次 檢查更新 發現有新版本 {0}, 請重新啟動 Wox。 - 检查更新失败,请检查你到 api.github.com 的网络连接和代理设置。 - - 下载更新失败,请检查你到 github-cloud.s3.amazonaws.com, 的网络连接和代理设置, - 或去 https://github.com/Wox-launcher/Wox/releases 手动下载更新。 - 更新說明: