From 61ba25ea9868f26bde3edd9ffa78dbf9bc9a7b4d Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 19 Aug 2024 01:58:10 +0200 Subject: [PATCH] b UI_combobox fix missing selected field in json --- src/UI/UI_combobox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/UI_combobox.cpp b/src/UI/UI_combobox.cpp index 46ec1df..9fbf600 100644 --- a/src/UI/UI_combobox.cpp +++ b/src/UI/UI_combobox.cpp @@ -57,5 +57,6 @@ void UI_combobox::from_json(const json& j) json UI_combobox::to_json() const { json j = UI_x_boxes::to_json(); + j["selected"] = p_options[p_selected]; return j; } \ No newline at end of file