mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
Make device title editable in the basic device settings. Fixes #2292
This commit is contained in:
@@ -679,6 +679,10 @@ void TestMI::webapiUpdateDeviceSettings(
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (deviceSettingsKeys.contains("title")) {
|
||||
settings.m_title = *response.getTestMiSettings()->getTitle();
|
||||
}
|
||||
if (deviceSettingsKeys.contains("useReverseAPI")) {
|
||||
settings.m_useReverseAPI = response.getTestMiSettings()->getUseReverseApi() != 0;
|
||||
}
|
||||
@@ -722,6 +726,12 @@ void TestMI::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response
|
||||
streams->back()->setPhaseImbalance(it->m_phaseImbalance);
|
||||
}
|
||||
|
||||
if (response.getTestMiSettings()->getTitle()) {
|
||||
*response.getTestMiSettings()->getTitle() = settings.m_title;
|
||||
} else {
|
||||
response.getTestMiSettings()->setTitle(new QString(settings.m_title));
|
||||
}
|
||||
|
||||
response.getTestMiSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
|
||||
|
||||
if (response.getTestMiSettings()->getReverseApiAddress()) {
|
||||
|
||||
Reference in New Issue
Block a user