mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibGUI: Always show a box when the user requests autocomplete
Previously if there were no suggestions, we simply wouldn't show the autocomplete popup at all. This is functional, but when there are no resultes it does leave the user wondering if it actually worked. Now, if the user requests autocomplete and we do have requests, it behaves exactly as before, but if there' aren't any we now show a box with the message "No suggestions" to show the user that we got the request, there just isn't anything to suggest.
This commit is contained in:
parent
6c776d267a
commit
0627ed9900
4 changed files with 27 additions and 11 deletions
|
@ -274,7 +274,11 @@ private:
|
|||
void defer_reflow();
|
||||
void undefer_reflow();
|
||||
|
||||
void try_show_autocomplete();
|
||||
enum UserRequestedAutocomplete {
|
||||
No,
|
||||
Yes
|
||||
};
|
||||
void try_show_autocomplete(UserRequestedAutocomplete);
|
||||
|
||||
int icon_size() const { return 16; }
|
||||
int icon_padding() const { return 2; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue