From 48df92c8a5ec1bd1fac2f18d05c081140e0664ba Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 30 Nov 2020 16:45:02 +0100 Subject: [PATCH] Fixed bug in GUI --- core/src/gui/main_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/gui/main_window.cpp b/core/src/gui/main_window.cpp index 7d300ef..0352c2e 100644 --- a/core/src/gui/main_window.cpp +++ b/core/src/gui/main_window.cpp @@ -309,6 +309,7 @@ void drawWindow() { if (ImGui::ImageButton(icons::MENU, ImVec2(30, 30), ImVec2(0, 0), ImVec2(1, 1), 5)) { showMenu = !showMenu; } + ImGui::PopID(); ImGui::SameLine(); @@ -318,6 +319,7 @@ void drawWindow() { sigpath::sourceManager.stop(); playing = false; } + ImGui::PopID(); } else { // TODO: Might need to check if there even is a device ImGui::PushID(ImGui::GetID("sdrpp_play_btn")); @@ -327,6 +329,7 @@ void drawWindow() { sigpath::sourceManager.tune(gui::waterfall.getCenterFrequency()); playing = true; } + ImGui::PopID(); } ImGui::SameLine();