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:
parent
47531a42a9
commit
55dbfd24c0
2 changed files with 9 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace GUI {
|
|||
|
||||
enum class InputType {
|
||||
Text,
|
||||
NonemptyText,
|
||||
Password
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue