diff options
author | Andrew Meadows <andrew.l.meadows@gmail.com> | 2024-10-03 12:08:26 -0700 |
---|---|---|
committer | Andrew Meadows <andrew.l.meadows@gmail.com> | 2024-10-03 12:08:26 -0700 |
commit | ea650ac073aeb03ab99b88c41f51ce636ce37982 (patch) | |
tree | ef00935573ba1cab6955b9d204e35209062f84e9 /indra/newview/llfloaterpreference.cpp | |
parent | 0617923ae7f450ece7288f8a73446c45a8ed32db (diff) |
fix GameControl save settings, fix linux build
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | indra/newview/llfloaterpreference.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index ec725a8ace..0c96c93d31 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -647,7 +647,7 @@ void LLFloaterPreference::cancel(const std::vector<std::string> settings_to_skip { if (LLPanelPreference* panel = dynamic_cast<LLPanelPreference*>(view)) { - panel->cancel(); + panel->cancel(settings_to_skip); } } // hide joystick pref floater @@ -3223,8 +3223,6 @@ void LLPanelPreferenceGameControl::saveSettings() }; // Use string formatting functions provided by class LLGameControl: - // stringifyAnalogMappings(), stringifyBinaryMappings(), stringifyFlycamMappings() - if (LLControlVariable* analogMappings = gSavedSettings.getControl("AnalogChannelMappings")) { analogMappings->set(LLGameControl::stringifyAnalogMappings(getChannel)); @@ -3496,6 +3494,7 @@ void LLPanelPreferenceGameControl::onCommitNumericValue() deviceOptions.getAxisOptions()[row_index].mOffset = (S16)value; } setNumericLabel(row->getColumn(column_index), value); + LLGameControl::setDeviceOptions(mSelectedDeviceGUID, deviceOptions); } } |