Fix for property class

This commit is contained in:
Tiberiu Chibici 2014-10-11 10:32:01 +03:00
parent e1d286d0e0
commit ba0101374e

View File

@ -61,7 +61,13 @@ namespace RainmeterStudio.Core.Model
set set
{ {
// Test if type changed // Test if type changed
bool typeChanged = (_value.GetType() != value.GetType()); bool typeChanged;
if (_value == null || value == null)
typeChanged = (_value != null) || (value != null);
else
typeChanged = (_value.GetType() != value.GetType());
// Set value // Set value
_value = value; _value = value;