diff --git a/BigBaseV2/src/gui/base_tab.cpp b/BigBaseV2/src/gui/base_tab.cpp index 038f7601..e3473b31 100644 --- a/BigBaseV2/src/gui/base_tab.cpp +++ b/BigBaseV2/src/gui/base_tab.cpp @@ -27,7 +27,8 @@ namespace big g_settings.save(); if (ImGui::SliderScalar("Double", ImGuiDataType_Double, g_settings.options["demo double"].get(), &min, &max)) //JSON does not describe rational numbers as integer/float/double/etc types, it is just "number". See: https://nlohmann.github.io/json/ g_settings.save(); - ImGui::Combo("Combo", (PINT)g_settings.options["demo combo"].get(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo)); + if (ImGui::Combo("Combo", (PINT)g_settings.options["demo combo"].get(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo))) + g_settings.save(); if (ImGui::Button("Spawn an Adder")) {