Commit cc238c19 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

systemsettingsrunner: Fix all matches having the same id

The id is used by KRunner to increase the relevance for often launched KCMs.

Test Plan:
Delete ~/.local/share/krunnerstaterc
build + install this commit and restart KRunner
launch a few KCMs using KRunner
The `~/.local/share/krunnerstaterc` file should contain LaunchCount
entries with the following pattern: `<count> krunner_systemsettings_<id of KCM>`
parent 28e40097
Pipeline #180623 passed with stage
in 1 minute and 35 seconds
......@@ -119,6 +119,7 @@ void SystemsettingsRunner::setupMatch(const KPluginMetaData &data, Plasma::Query
if (!data.iconName().isEmpty()) {
match.setIconName(data.iconName());
}
match.setId(data.pluginId()); // KRunner needs the id to adjust the relevance for often launched KCMs
match.setData(QVariant::fromValue(data));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment