Fixed bug with radio

This commit is contained in:
Ryzerth
2021-02-15 20:16:40 +01:00
parent 23dcc16829
commit aae6f535f5
8 changed files with 13 additions and 5 deletions

View File

@@ -139,6 +139,7 @@ public:
ImGui::SameLine();
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
if (ImGui::InputFloat(("##_radio_cw_snap_" + uiPrefix).c_str(), &snapInterval, 1, 100, "%.0f", 0)) {
if (snapInterval < 1) { snapInterval = 1; }
setSnapInterval(snapInterval);
_config->aquire();
_config->conf[uiPrefix]["CW"]["snapInterval"] = snapInterval;