mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 10:28:28 +01:00
Another fix 2
This commit is contained in:
parent
6c4af86b29
commit
37ad6365e3
@ -170,14 +170,12 @@ private:
|
|||||||
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
|
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
|
||||||
if (_this->running) { style::beginDisabled(); }
|
if (_this->running) { style::beginDisabled(); }
|
||||||
if (ImGui::InputFloat(CONCAT("##_samplerate_select_", _this->name), &_this->sampleRate, 1, 1000, 0)) {
|
if (ImGui::InputFloat(CONCAT("##_samplerate_select_", _this->name), &_this->sampleRate, 1, 1000, 0)) {
|
||||||
if (_this->sampleRate > 0) {
|
|
||||||
_this->sampleRate = std::clamp<float>(_this->sampleRate, 500000, 61000000);
|
_this->sampleRate = std::clamp<float>(_this->sampleRate, 500000, 61000000);
|
||||||
core::setInputSampleRate(_this->sampleRate);
|
core::setInputSampleRate(_this->sampleRate);
|
||||||
config.aquire();
|
config.aquire();
|
||||||
config.conf["sampleRate"] = _this->sampleRate;
|
config.conf["sampleRate"] = _this->sampleRate;
|
||||||
config.release(true);
|
config.release(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (_this->running) { style::endDisabled(); }
|
if (_this->running) { style::endDisabled(); }
|
||||||
|
|
||||||
ImGui::Text("Gain Mode");
|
ImGui::Text("Gain Mode");
|
||||||
|
Loading…
Reference in New Issue
Block a user