small fixes

This commit is contained in:
2024-10-31 20:05:00 +01:00
parent 076277bd60
commit a7297e1faf
3 changed files with 12 additions and 6 deletions

View File

@@ -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;
}