Update ScreenMatching.cs

This commit is contained in:
Namhyeon Go 2024-08-24 15:57:42 +09:00 committed by GitHub
parent 016239b014
commit ba9088f43f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,20 +67,20 @@ public class ScreenMatching
templateImages = new List<Bitmap>(); templateImages = new List<Bitmap>();
// Read values from configration file // Read values from configration file
string mode; string _mode = null;
string _params; string __params = null;
try try
{ {
mode = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_MODE", "Service"); _mode = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_MODE", "Service");
_params = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_PARAMS", "Service"); __params = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_PARAMS", "Service");
} }
catch (Exception ex) catch (Exception ex)
{ {
this.parent.Log($"Failed to read from configration file: {ex.Message}"); this.parent.Log($"Failed to read from configration file: {ex.Message}");
} }
SetMode(mode); SetMode(_mode);
SetParams(_params); SetParams(__params);
LoadTemplateImages(); LoadTemplateImages();
} }