Fixed the way the IF mode combo is displayed

This commit is contained in:
AlexandreRouma 2021-08-30 15:50:47 +02:00 committed by GitHub
parent dbd734a0b5
commit e101c1ebd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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