New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config: Port BluetoothPassthrough settings to new config system. #10326
Config: Port BluetoothPassthrough settings to new config system. #10326
Conversation
| @@ -556,7 +558,7 @@ void BluetoothRealDevice::SaveLinkKeys() | |||
| std::string config_string = oss.str(); | |||
| if (!config_string.empty()) | |||
| config_string.pop_back(); | |||
| SConfig::GetInstance().m_bt_passthrough_link_keys = config_string; | |||
| Config::SetBase(Config::MAIN_BLUETOOTHPASSTHROUGH_LINK_KEYS, config_string); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is SetBase() fine here or should this be SetBaseOrCurrent()? I can't really imagine a case where this is overridden by anything, but...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetBase sounds fine to me. We always want this to be persisted.
98413b1
to
111a2b8
Compare
| @@ -556,7 +558,7 @@ void BluetoothRealDevice::SaveLinkKeys() | |||
| std::string config_string = oss.str(); | |||
| if (!config_string.empty()) | |||
| config_string.pop_back(); | |||
| SConfig::GetInstance().m_bt_passthrough_link_keys = config_string; | |||
| Config::SetBase(Config::MAIN_BLUETOOTHPASSTHROUGH_LINK_KEYS, config_string); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetBase sounds fine to me. We always want this to be persisted.
111a2b8
to
478504f
Compare
478504f
to
5268878
Compare
This one is untested because I don't have a bluetooth adapter handy at the moment. Someone should test if it still works as expected.