Merge pull request #5376 from xperia64/save_default_controls

Actually save the input when clearing/resetting to default
This commit is contained in:
xperia64 2020-05-31 16:27:55 -04:00 committed by GitHub
commit 76253063a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,6 +367,9 @@ void ConfigureInput::RestoreDefaults() {
} }
} }
UpdateButtonLabels(); UpdateButtonLabels();
ApplyConfiguration();
Settings::SaveProfile(Settings::values.current_input_profile_index);
} }
void ConfigureInput::ClearAll() { void ConfigureInput::ClearAll() {
@ -378,6 +381,9 @@ void ConfigureInput::ClearAll() {
analogs_param[analog_id].Clear(); analogs_param[analog_id].Clear();
} }
UpdateButtonLabels(); UpdateButtonLabels();
ApplyConfiguration();
Settings::SaveProfile(Settings::values.current_input_profile_index);
} }
void ConfigureInput::UpdateButtonLabels() { void ConfigureInput::UpdateButtonLabels() {