2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-20 14:58:29 +00:00

only reset settings if they changed

This commit is contained in:
in0finite 2019-11-06 13:53:18 +01:00
parent 9da08b7dba
commit c512aaad1d

View file

@ -477,7 +477,10 @@ namespace SanAndreasUnity.UI {
F.RunExceptionSafe (() => {
if (input.isAvailable())
{
input.SetValueNonGeneric(input.GetDefaultValueNonGeneric());
object defaultValue = input.GetDefaultValueNonGeneric();
object currentValue = input.GetValueNonGeneric();
if (! defaultValue.Equals(currentValue))
input.SetValueNonGeneric(defaultValue);
}
});
}