pull/964/head
AlexandreRouma 2023-01-13 17:11:16 +01:00
rodzic a1cbc69a65
commit b3222003b1
3 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -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);
}
}
}

Wyświetl plik

@ -427,9 +427,10 @@ private:
}
if (_this->tunerAgc || _this->gainList.size() == 0) { SmGui::BeginDisabled(); }
SmGui::LeftLabel("Gain");
SmGui::FillWidth();
SmGui::ForceSync();
// TODO: FIND ANOTHER WAY
if (_this->serverMode) {
if (SmGui::SliderInt(CONCAT("##_rtlsdr_gain_", _this->name), &_this->gainId, 0, _this->gainList.size() - 1, SmGui::FMT_STR_NONE)) {

Wyświetl plik

@ -239,6 +239,7 @@ private:
}
if (_this->tunerAGC) { SmGui::BeginDisabled(); }
SmGui::LeftLabel("Gain");
SmGui::FillWidth();
if (SmGui::SliderInt(CONCAT("##_gain_select_", _this->name), &_this->gain, 0, 28, SmGui::FMT_STR_NONE)) {
if (_this->running) {