1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:57:34 +00:00

LibGUI: Verify NonemptyText InputBox doesn't result in an empty string

This commit is contained in:
Karol Baraniecki 2022-12-31 17:52:09 +01:00 committed by Andrew Kaster
parent 506c26acce
commit 71f5bbab42
2 changed files with 19 additions and 6 deletions

View file

@ -32,10 +32,11 @@ private:
explicit InputBox(Window* parent_window, DeprecatedString text_value, StringView prompt, StringView title, InputType input_type, StringView placeholder);
virtual void on_done(ExecResult) override;
void build(InputType input_type);
void build();
DeprecatedString m_text_value;
DeprecatedString m_prompt;
InputType m_input_type;
DeprecatedString m_placeholder;
RefPtr<Button> m_ok_button;