This commit is contained in:
AlexandreRouma
2023-01-13 17:11:16 +01:00
parent a1cbc69a65
commit b3222003b1
3 changed files with 8 additions and 6 deletions

View File

@ -131,11 +131,11 @@ private:
std::lock_guard lck(_this->vfoMtx);
if (ImGui::Combo(CONCAT("##_rigctl_srv_vfo_", _this->name), &_this->vfoId, _this->vfoNamesTxt.c_str())) {
_this->selectVfoByName(_this->vfoNames[_this->vfoId], false);
}
if (!_this->selectedVfo.empty()) {
config.acquire();
config.conf[_this->name]["vfo"] = _this->selectedVfo;
config.release(true);
if (!_this->selectedVfo.empty()) {
config.acquire();
config.conf[_this->name]["vfo"] = _this->selectedVfo;
config.release(true);
}
}
}