update cards

This commit is contained in:
Luke Pulverenti
2016-08-30 00:33:24 -04:00
parent 2bdaba633c
commit f5c4fd7690
2 changed files with 9 additions and 3 deletions

View File

@@ -142,9 +142,15 @@ namespace MediaBrowser.Common.Implementations.Security
}
set
{
if (value != LicenseFile.RegKey)
var newValue = value;
if (newValue != null)
{
LicenseFile.RegKey = value;
newValue = newValue.Trim();
}
if (newValue != LicenseFile.RegKey)
{
LicenseFile.RegKey = newValue;
LicenseFile.Save();
// re-load registration info