Plugins: Don't force validation on disabled options

This commit is contained in:
Katy Coe
2020-12-28 23:10:29 +01:00
parent 99f1c38b4c
commit 84b3b5f9a7
2 changed files with 17 additions and 3 deletions

View File

@@ -95,6 +95,12 @@ namespace Il2CppInspector.PluginAPI.V100
public T Value {
get => _value;
set {
// Disabled options can be set to invalid values
if (!If()) {
_value = value;
return;
}
// Perform internal validation
InternalValidate(value);