https://bugs.kde.org/show_bug.cgi?id=406292

Alexander Lohnau <alexander.loh...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/krunner/commit/ec725
                   |                            |807126cbccf6f04c54be597e225
                   |                            |26ae6e8f
         Resolution|---                         |FIXED
   Version Fixed In|                            |Frameworks 5.82 & Plasma
                   |                            |5.22
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Alexander Lohnau <alexander.loh...@gmx.de> ---
Git commit ec725807126cbccf6f04c54be597e22526ae6e8f by Alexander Lohnau.
Committed on 28/04/2021 at 17:18.
Pushed by alex into branch 'master'.

Allow runners to prevent duplicate results

This commit allows the runners to use the id to prevent duplicate
results. For this the X-Plasma-Runner-Unique-Results property is added.
If the runners set this to true the runner name is not prepended to the id and
it is checked if a match with the id already exists before the match is added.

Because the property introduces a behavior change we can not enable it
by default.

In case there are duplicate results the results from the runner which has the
X-Plasma-Runner-Weak-Results property
set to true will be removed. Otherwise the results from the first runner
will be used.
FIXED-IN: Frameworks 5.82 & Plasma 5.22

M  +2    -2    autotests/fakerunner.h
A  +7    -0    autotests/metadatafile1.desktop
A  +6    -0    autotests/metadatafile2.desktop
M  +36   -1    autotests/runnermatchmethodstest.cpp
M  +12   -0    src/abstractrunner.cpp
M  +5    -0    src/abstractrunner.h
M  +2    -0    src/abstractrunner_p.h
M  +9    -0    src/data/servicetypes/plasma-runner.desktop
M  +8    -2    src/dbusrunner.cpp
M  +1    -0    src/dbusrunner_p.h
M  +9    -7    src/querymatch.cpp
M  +25   -4    src/runnercontext.cpp

https://invent.kde.org/frameworks/krunner/commit/ec725807126cbccf6f04c54be597e22526ae6e8f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to