Fixed board not selected after refresh bug for hackrf

This commit is contained in:
Ryzerth 2021-04-18 17:59:42 +02:00
parent 000429c3b5
commit 21cea65fbe

View File

@ -299,6 +299,7 @@ private:
float refreshBtnWdith = menuWidth - ImGui::GetCursorPosX(); float refreshBtnWdith = menuWidth - ImGui::GetCursorPosX();
if (ImGui::Button(CONCAT("Refresh##_hackrf_refr_", _this->name), ImVec2(refreshBtnWdith, 0))) { if (ImGui::Button(CONCAT("Refresh##_hackrf_refr_", _this->name), ImVec2(refreshBtnWdith, 0))) {
_this->refresh(); _this->refresh();
_this->selectBySerial(_this->selectedSerial);
} }
if (_this->running) { style::endDisabled(); } if (_this->running) { style::endDisabled(); }