Merge pull request #506 from PepperDash/hotfix/missing-logo-info-in-room-config

Addresses #505
This commit is contained in:
Andrew Welker
2020-11-24 10:52:30 -07:00
committed by GitHub

View File

@@ -536,6 +536,8 @@ namespace PepperDash.Essentials
string logoLight = null; string logoLight = null;
string logo = null; string logo = null;
try
{
if (c.Properties["logoDark"] != null) if (c.Properties["logoDark"] != null)
{ {
logoDark = c.Properties["logoDark"].Value<string>("type"); logoDark = c.Properties["logoDark"].Value<string>("type");
@@ -554,5 +556,11 @@ namespace PepperDash.Essentials
return ((logoDark != null && logoDark == "system") || return ((logoDark != null && logoDark == "system") ||
(logoLight != null && logoLight == "system") || (logo != null && logo == "system")); (logoLight != null && logoLight == "system") || (logo != null && logo == "system"));
} }
catch (Exception e)
{
Debug.Console(1, Debug.ErrorLogLevel.Notice, "Unable to find logo information in any room config");
return false;
}
}
} }
} }