DIsable transparent on Chromium

This commit is contained in:
Nicola
2020-10-23 17:09:45 +02:00
parent 358f8c9330
commit f8a140cdf6
5 changed files with 19 additions and 2 deletions
+10
View File
@@ -31,6 +31,7 @@ namespace Client.Config
.Descendants(Constants.CLIENT_CONFIG_KEY)
.Select(x => new SubModels.Client()
{
EnableTransparent = ValidateEnableTransparent(x.Element("EnableTransparent").Value),
TranspColor = ValidateTranspColor(x.Element("TranspColor").Value),
RenderingMethod = ValidateRendering(x.Element("RenderingMethod").Value),
RunningOnSecondaryScreen = ValidateSecScreen(x.Element("RunningOnSecondaryScreen").Value),
@@ -179,7 +180,16 @@ namespace Client.Config
throw new Exception(@"Configuration Error: ""Client - DeveloperMode"" is not a valid Boolean Type");
}
private static bool ValidateEnableTransparent(string value)
{
Boolean DeveloperMode;
if (Boolean.TryParse(value, out DeveloperMode))
return DeveloperMode;
else
throw new Exception(@"Configuration Error: ""Client - EnableTransparent"" is not a valid Boolean Type");
}
private static Boolean ValidateFollowNcWin(String value)
{