mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user