Bug 418088 - Searched text disappears upon refresh due to completed package installation
Summary: Searched text disappears upon refresh due to completed package installation
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (other bugs)
Version First Reported In: 5.12.9
Platform: Kubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 12:57 UTC by r.sgl
Modified: 2025-06-09 19:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description r.sgl 2020-02-23 12:57:04 UTC
SUMMARY
Searched text disappears upon refresh due to completed package installation


STEPS TO REPRODUCE
1. Have a package being installed during this process
2. Open the Application Menu and search for text
3. Wait for package installation to complete

OBSERVED RESULT
The Application Menu will now refresh and this removes the searched text

EXPECTED RESULT
Refreshing should not clear searched text

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
None
Comment 1 Noah Davis 2023-08-02 22:45:30 UTC
Can confirm with Plasma 5.26.1
Comment 2 Bug Janitor Service 2025-06-08 13:16:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3050
Comment 3 cwo 2025-06-09 19:17:31 UTC
Git commit 27bcbf6380d754646cbd14aed54459d872cb629f by Christoph Wolk.
Committed on 09/06/2025 at 18:56.
Pushed by cwo into branch 'master'.

applets/kicker: rerun search on model refresh

When the underlying model changes, such as from an app being installed
or uninstalled, any active queries may be invalidated and have to be re-
run. Currently, this will just clear the query and leave the widget in
the default state. This is surprising and inconvenient, as the user has
to repeat their input to get back to what they were doing.

Instead, note the current search term on model refresh and re-enter it
for the user, restarting the query. As query changes are on a timer,
we require that clear is exposed in the backend, which is done in a
separate p-w commit.
FIXED-IN: 6.4.0

M  +7    -1    applets/kicker/package/contents/ui/MenuRepresentation.qml
M  +2    -1    applets/kicker/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/27bcbf6380d754646cbd14aed54459d872cb629f
Comment 4 cwo 2025-06-09 19:31:32 UTC
Git commit 70854991c58ee26814a383a3a8350559d1e5a466 by Christoph Wolk.
Committed on 09/06/2025 at 19:17.
Pushed by cwo into branch 'Plasma/6.4'.

applets/kicker: rerun search on model refresh

When the underlying model changes, such as from an app being installed
or uninstalled, any active queries may be invalidated and have to be re-
run. Currently, this will just clear the query and leave the widget in
the default state. This is surprising and inconvenient, as the user has
to repeat their input to get back to what they were doing.

Instead, note the current search term on model refresh and re-enter it
for the user, restarting the query. As query changes are on a timer,
we require that clear is exposed in the backend, which is done in a
separate p-w commit.
FIXED-IN: 6.4.0


(cherry picked from commit 27bcbf6380d754646cbd14aed54459d872cb629f)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +7    -1    applets/kicker/package/contents/ui/MenuRepresentation.qml
M  +2    -1    applets/kicker/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/70854991c58ee26814a383a3a8350559d1e5a466