mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:34:57 +00:00
LibGUI: Display commands on CommandPalette's start up
Currently, if we run CommandPalette, it's blank by default and it's not displaying all available commands for the app in which it has been opened. User has to enter something and then delete it to see all commands. This patch makes all available commands being displayed by default on start of CommandPalette, by allowing incoming empty string to be invalidated in FilteringProxyModel, instead of returning instantly.
This commit is contained in:
parent
b0e5aadf1a
commit
3ff36855d4
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ void FilteringProxyModel::filter()
|
|||
|
||||
void FilteringProxyModel::set_filter_term(StringView term)
|
||||
{
|
||||
if (m_filter_term == term)
|
||||
if (m_filter_term == term && !term.is_empty())
|
||||
return;
|
||||
m_filter_term = term;
|
||||
invalidate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue