diff --git a/YAMDCC.ConfigEditor/MainForm.cs b/YAMDCC.ConfigEditor/MainForm.cs index 316402e..23e6fd9 100644 --- a/YAMDCC.ConfigEditor/MainForm.cs +++ b/YAMDCC.ConfigEditor/MainForm.cs @@ -625,9 +625,16 @@ private void tsiCheckUpdate_Click(object sender, EventArgs e) { Process.Start("updater", "--checkupdate"); } - catch (FileNotFoundException) + catch (Exception ex) { - Utils.ShowError("Updater.exe not found!"); + if (ex is Win32Exception or FileNotFoundException) + { + Utils.ShowError("Updater.exe not found!"); + } + else + { + throw; + } } } #endregion @@ -977,7 +984,7 @@ private void FanModeChange(object sender, EventArgs e) Config.FanModeConf.ModeSel = i; ttMain.SetToolTip(cboFanMode, Strings.GetString("ttFanMode", Config.FanModeConf.FanModes[i].Desc)); -} + } private void txtAuthor_Validating(object sender, CancelEventArgs e) { diff --git a/YAMDCC.ECInspector/Program.cs b/YAMDCC.ECInspector/Program.cs index 0fe117b..a09c326 100644 --- a/YAMDCC.ECInspector/Program.cs +++ b/YAMDCC.ECInspector/Program.cs @@ -15,7 +15,6 @@ // YAMDCC. If not, see . using System; -using System.Diagnostics; using System.ServiceProcess; using System.Threading; using YAMDCC.Common;