mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fixed bug in GUI
This commit is contained in:
parent
5bb2f9bf05
commit
48df92c8a5
@ -309,6 +309,7 @@ void drawWindow() {
|
|||||||
if (ImGui::ImageButton(icons::MENU, ImVec2(30, 30), ImVec2(0, 0), ImVec2(1, 1), 5)) {
|
if (ImGui::ImageButton(icons::MENU, ImVec2(30, 30), ImVec2(0, 0), ImVec2(1, 1), 5)) {
|
||||||
showMenu = !showMenu;
|
showMenu = !showMenu;
|
||||||
}
|
}
|
||||||
|
ImGui::PopID();
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
@ -318,6 +319,7 @@ void drawWindow() {
|
|||||||
sigpath::sourceManager.stop();
|
sigpath::sourceManager.stop();
|
||||||
playing = false;
|
playing = false;
|
||||||
}
|
}
|
||||||
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
else { // TODO: Might need to check if there even is a device
|
else { // TODO: Might need to check if there even is a device
|
||||||
ImGui::PushID(ImGui::GetID("sdrpp_play_btn"));
|
ImGui::PushID(ImGui::GetID("sdrpp_play_btn"));
|
||||||
@ -327,6 +329,7 @@ void drawWindow() {
|
|||||||
sigpath::sourceManager.tune(gui::waterfall.getCenterFrequency());
|
sigpath::sourceManager.tune(gui::waterfall.getCenterFrequency());
|
||||||
playing = true;
|
playing = true;
|
||||||
}
|
}
|
||||||
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user