From 3ff36855d41a654da3da196adb524e8ed97ab90c Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 10 Dec 2023 22:00:19 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibGUI/FilteringProxyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/FilteringProxyModel.cpp b/Userland/Libraries/LibGUI/FilteringProxyModel.cpp index 65f515df7e..7a25253130 100644 --- a/Userland/Libraries/LibGUI/FilteringProxyModel.cpp +++ b/Userland/Libraries/LibGUI/FilteringProxyModel.cpp @@ -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();