mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fix for property class
This commit is contained in:
parent
e1d286d0e0
commit
ba0101374e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user