Fixed combo example not saving the example configuration when changed.

This commit is contained in:
gir489 2020-05-28 17:53:16 -04:00
parent 59aa1c6de2
commit 6880dfcbee

View File

@ -27,7 +27,8 @@ namespace big
g_settings.save();
if (ImGui::SliderScalar("Double", ImGuiDataType_Double, g_settings.options["demo double"].get<double*>(), &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<int64_t*>(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo));
if (ImGui::Combo("Combo", (PINT)g_settings.options["demo combo"].get<int64_t*>(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo)))
g_settings.save();
if (ImGui::Button("Spawn an Adder"))
{