From a7297e1faf385b621d590a2118a8a2e040ce175f Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Thu, 31 Oct 2024 20:05:00 +0100 Subject: [PATCH] small fixes --- Project64Savestater/AppSymbols.cs | 2 +- Project64Savestater/MainForm.cs | 12 +++++++++--- Project64Savestater/PJ64Savestater.csproj | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Project64Savestater/AppSymbols.cs b/Project64Savestater/AppSymbols.cs index 133ed16..d8d8ad6 100644 --- a/Project64Savestater/AppSymbols.cs +++ b/Project64Savestater/AppSymbols.cs @@ -7,5 +7,5 @@ public enum AppSymbols game_controller, refresh, save, - stop_cicled, + stop_circled, } diff --git a/Project64Savestater/MainForm.cs b/Project64Savestater/MainForm.cs index 5172479..ee025ae 100644 --- a/Project64Savestater/MainForm.cs +++ b/Project64Savestater/MainForm.cs @@ -25,8 +25,14 @@ public partial class MainForm : RadForm public MainForm() { // Read configs - var reader = new AppSettingsReader(); - toleranceOffset = (int)reader.GetValue("toleranceOffset", typeof(int)); + try + { + var reader = new AppSettingsReader(); + toleranceOffset = (int)reader.GetValue("toleranceOffset", typeof(int)); + } + catch (Exception) + { + } // Init components InitializeComponent(); @@ -605,7 +611,7 @@ public partial class MainForm : RadForm } else { - radButton_StartStopListening.SvgImage = radButton_StartStopListening.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.stop_cicled, SymbolSize.Small); ; + radButton_StartStopListening.SvgImage = radButton_StartStopListening.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.stop_circled, SymbolSize.Small); ; radButton_StartStopListening.Text = LangRes.Button_StopListening; enableActionExecution = true; } diff --git a/Project64Savestater/PJ64Savestater.csproj b/Project64Savestater/PJ64Savestater.csproj index 2d7d399..fa759de 100644 --- a/Project64Savestater/PJ64Savestater.csproj +++ b/Project64Savestater/PJ64Savestater.csproj @@ -54,8 +54,8 @@ - + \ No newline at end of file