From c3ddffb3a9f02a3cb52d9360559a1c3e8a1843e4 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Thu, 23 Jun 2022 23:37:12 +0200 Subject: [PATCH] UI fix --- decoder_modules/radio/src/demodulators/am.h | 2 +- decoder_modules/radio/src/demodulators/cw.h | 2 +- decoder_modules/radio/src/demodulators/dsb.h | 2 +- decoder_modules/radio/src/demodulators/lsb.h | 2 +- decoder_modules/radio/src/demodulators/usb.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/decoder_modules/radio/src/demodulators/am.h b/decoder_modules/radio/src/demodulators/am.h index e586ff3e..6ee21269 100644 --- a/decoder_modules/radio/src/demodulators/am.h +++ b/decoder_modules/radio/src/demodulators/am.h @@ -50,7 +50,7 @@ namespace demod { } ImGui::LeftLabel("AGC Decay"); ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::SliderFloat(("AGC Decay##_radio_am_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { + if (ImGui::SliderFloat(("##_radio_am_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { demod.setAGCDecay(agcDecay / getIFSampleRate()); _config->acquire(); _config->conf[name][getName()]["agcDecay"] = agcDecay; diff --git a/decoder_modules/radio/src/demodulators/cw.h b/decoder_modules/radio/src/demodulators/cw.h index 6212bd3d..70e5fb31 100644 --- a/decoder_modules/radio/src/demodulators/cw.h +++ b/decoder_modules/radio/src/demodulators/cw.h @@ -53,7 +53,7 @@ namespace demod { } ImGui::LeftLabel("AGC Decay"); ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::SliderFloat(("AGC Decay##_radio_cw_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { + if (ImGui::SliderFloat(("##_radio_cw_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { demod.setAGCDecay(agcDecay / getIFSampleRate()); _config->acquire(); _config->conf[name][getName()]["agcDecay"] = agcDecay; diff --git a/decoder_modules/radio/src/demodulators/dsb.h b/decoder_modules/radio/src/demodulators/dsb.h index e3cde0b5..eb984c34 100644 --- a/decoder_modules/radio/src/demodulators/dsb.h +++ b/decoder_modules/radio/src/demodulators/dsb.h @@ -49,7 +49,7 @@ namespace demod { } ImGui::LeftLabel("AGC Decay"); ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::SliderFloat(("AGC Decay##_radio_dsb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { + if (ImGui::SliderFloat(("##_radio_dsb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { demod.setAGCDecay(agcDecay / getIFSampleRate()); _config->acquire(); _config->conf[name][getName()]["agcDecay"] = agcDecay; diff --git a/decoder_modules/radio/src/demodulators/lsb.h b/decoder_modules/radio/src/demodulators/lsb.h index d31086fe..7b957bb6 100644 --- a/decoder_modules/radio/src/demodulators/lsb.h +++ b/decoder_modules/radio/src/demodulators/lsb.h @@ -49,7 +49,7 @@ namespace demod { } ImGui::LeftLabel("AGC Decay"); ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::SliderFloat(("AGC Decay##_radio_lsb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { + if (ImGui::SliderFloat(("##_radio_lsb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { demod.setAGCDecay(agcDecay / getIFSampleRate()); _config->acquire(); _config->conf[name][getName()]["agcDecay"] = agcDecay; diff --git a/decoder_modules/radio/src/demodulators/usb.h b/decoder_modules/radio/src/demodulators/usb.h index cd41d2b4..b285eeb6 100644 --- a/decoder_modules/radio/src/demodulators/usb.h +++ b/decoder_modules/radio/src/demodulators/usb.h @@ -50,7 +50,7 @@ namespace demod { } ImGui::LeftLabel("AGC Decay"); ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::SliderFloat(("AGC Decay##_radio_usb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { + if (ImGui::SliderFloat(("##_radio_usb_agc_decay_" + name).c_str(), &agcDecay, 1.0f, 20.0f)) { demod.setAGCDecay(agcDecay / getIFSampleRate()); _config->acquire(); _config->conf[name][getName()]["agcDecay"] = agcDecay;