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:
parent
9da08b7dba
commit
c512aaad1d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue