From 4931d3b1ed36fa45fda3588d11773863b51ded27 Mon Sep 17 00:00:00 2001 From: Pierre Ferran Date: Sat, 24 Feb 2024 21:19:29 -0500 Subject: [PATCH] Another windows fail, fix radio gain slider wrongly disabled --- include/ui/widgets/gain.widget.h | 4 ++-- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ui/widgets/gain.widget.h b/include/ui/widgets/gain.widget.h index 3a7db6c..b04b10c 100644 --- a/include/ui/widgets/gain.widget.h +++ b/include/ui/widgets/gain.widget.h @@ -15,7 +15,7 @@ class GainWidget { { ImGui::PushItemWidth(-1.0); ImGui::Text("Radio Gain"); - style::push_disabled_on(isVoiceConnected); + style::push_disabled_on(!isVoiceConnected); if (ImGui::SliderInt( "##Radio Gain", &shared::radioGain, 0, 200, "%.3i %%")) { if (isVoiceConnected) { @@ -23,7 +23,7 @@ class GainWidget { } } ImGui::PopItemWidth(); - style::pop_disabled_on(isVoiceConnected); + style::pop_disabled_on(!isVoiceConnected); } }; } diff --git a/src/main.cpp b/src/main.cpp index f68ffbc..2bc858b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -101,7 +101,7 @@ int main(int, char**) } } else { disconnectWarningSoundAvailable = false; - spdlog::warn("Disconnect sound file not found: {}", soundPath.c_str()); + spdlog::warn("Disconnect sound file not found: {}", soundPath.string().c_str()); } // Setup Dear ImGui context