mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fixed the way the IF mode combo is displayed
This commit is contained in:
parent
dbd734a0b5
commit
e101c1ebd7
@ -681,11 +681,10 @@ private:
|
||||
config.conf["device"] = _this->devNameList[_this->devId];
|
||||
config.release(true);
|
||||
}
|
||||
|
||||
ImGui::PushItemWidth(menuWidth - ImGui::CalcTextSize("IF Mode").x - 10);
|
||||
|
||||
ImGui::Text("IF Mode");
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
|
||||
if (ImGui::Combo(CONCAT("##sdrplay_ifmode", _this->name), &_this->ifModeId, ifModeTxt)) {
|
||||
if(_this->ifModeId != 0){
|
||||
_this->bandwidth = ifModes[_this->ifModeId].bw;
|
||||
@ -1081,4 +1080,4 @@ MOD_EXPORT void _DELETE_INSTANCE_(ModuleManager::Instance* instance) {
|
||||
MOD_EXPORT void _END_() {
|
||||
config.disableAutoSave();
|
||||
config.save();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user