Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Another windows fail, fix radio gain slider wrongly disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Feb 25, 2024
1 parent 602fe4c commit 4931d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/ui/widgets/gain.widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ 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) {
std::invoke(callback);
}
}
ImGui::PopItemWidth();
style::pop_disabled_on(isVoiceConnected);
style::pop_disabled_on(!isVoiceConnected);
}
};
}
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4931d3b

Please sign in to comment.