mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Data bindings UI - Update evaluation status of conditional data bindings
Profiles - Don't fail to activate a module when its last profile fails to load
This commit is contained in:
1 parent
12227b3530
commit
1a7a7e0582
5 files changed
+43
-14
No files matched your search
@@ -20,14 +20,14 @@ namespace Artemis.Core.JsonConverters
|
||||
{
|
||||
JValue? jsonValue = serializer.Deserialize<JValue>(reader);
|
||||
if (jsonValue == null)
|
||||
throw new FormatException();
|
||||
throw new JsonReaderException("Failed to deserialize forgiving int value");
|
||||
|
||||
if (jsonValue.Type == JTokenType.Float)
|
||||
return (int) Math.Round(jsonValue.Value<double>());
|
||||
if (jsonValue.Type == JTokenType.Integer)
|
||||
return jsonValue.Value<int>();
|
||||
|
||||
throw new FormatException();
|
||||
throw new JsonReaderException("Failed to deserialize forgiving int value");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user