1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

LibGUI: Allow the InputBox to be of NonemptyText type

It seems like a lot (most?) places where InputBoxes are used check if
the retrieved string isn't empty anyway - make this be reflected in
the user interface, by disabling (graying out) the "OK" button when
nothing is entered, so empty input isn't a viable option at all.
This commit is contained in:
Karol Baraniecki 2023-01-14 15:14:47 -07:00 committed by Andrew Kaster
parent 47531a42a9
commit 55dbfd24c0
2 changed files with 9 additions and 0 deletions

View file

@ -14,6 +14,7 @@ namespace GUI {
enum class InputType {
Text,
NonemptyText,
Password
};