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

@ -682,10 +682,9 @@ private:
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;