Summary: | Milou cancels/resets the search if there are no first result after 500 ms | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Friedrich W. H. Kossebau <kossebau> |
Component: | general | Assignee: | Kai Uwe Broulik <kde> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kde, simonandric5 |
Priority: | NOR | ||
Version: | 5.11.95 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/milou/c918c2840bcbbc52da72f163c8494db227db3600 | Version Fixed In: | |
Sentry Crash Report: |
Description
Friedrich W. H. Kossebau
2018-01-29 18:02:47 UTC
Relevant commit message: SourcesModel: Delay clearing the model on a new query We delay querying the model by about 500msec or until we get results when the query string is changed. This way, we avoid the extra resizing of the window between when the results show up and the query is sent It doesn't sound like it should be clearing the matching manager and match context, it should be just a visual thing. Git commit c918c2840bcbbc52da72f163c8494db227db3600 by Fabian Vogt. Committed on 18/06/2019 at 16:55. Pushed by fvogt into branch 'Plasma/5.12'. Don't give up if no results arrive after 500ms Summary: Currently it resets the entire context if no results appear after 500ms, which means no new results can appear. This makes no sense. RunnerManager does not emit any matchChanged signal while the runners update the matches too quickly. The way this delay is implemented can result in never actually emitting the signal until all runners are done though. Thus it's actually likely to hit this situation. Test Plan: Test results appear now, even if the first batch of runners is slow. List of matches still clears if nothing was found. Reviewers: #plasma Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D21605 M +6 -1 lib/sourcesmodel.cpp M +3 -0 lib/sourcesmodel.h https://commits.kde.org/milou/c918c2840bcbbc52da72f163c8494db227db3600 |