From d45d9c240d7ccf44bdd39a758e977f9259890fbc Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Wed, 28 Aug 2024 20:44:41 +0200 Subject: [PATCH] b UI add default on UI_textbox on_change --- src/UI/UI_textbox.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/UI_textbox.hpp b/src/UI/UI_textbox.hpp index e813d48..cbb7ac3 100644 --- a/src/UI/UI_textbox.hpp +++ b/src/UI/UI_textbox.hpp @@ -7,7 +7,7 @@ class UI_textbox : public UI_item { public: - UI_textbox(std::string id, std::string hint, Color fg_color, Color bg_color, std::function on_change); + UI_textbox(std::string id, std::string hint, Color fg_color, Color bg_color, std::function on_change = nullptr); UI_textbox(const json& j); void set_text(std::string text) override;