mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Added reset layer property button
This commit is contained in:
1 parent
8d901027ee
commit
f637c131c4
3 files changed
+30
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
@@ -208,8 +208,10 @@ namespace Artemis.Core
|
||||
if (_disposed)
|
||||
throw new ObjectDisposedException("LayerProperty");
|
||||
|
||||
BaseValue = DefaultValue;
|
||||
CurrentValue = DefaultValue;
|
||||
string json = JsonConvert.SerializeObject(DefaultValue, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.All });
|
||||
|
||||
BaseValue = JsonConvert.DeserializeObject<T>(json);
|
||||
CurrentValue = JsonConvert.DeserializeObject<T>(json);
|
||||
}
|
||||
|
||||
private void ReapplyUpdate()
|
||||
|
||||
Reference in new issue
Block a user