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;