Commit 8bfeeed4 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Don't manually set list of allowed runners for kickoff

The RunnerManager will read the enabled plugins from the krunnerrc file.
This way enabled plugins are configurable and consistent with KRunner.
parent 53c4c038
......@@ -30,14 +30,6 @@
<label>List of applications at the top of the "Computer" tab.</label>
<default>systemsettings.desktop,org.kde.kinfocenter.desktop,org.kde.discover.desktop</default>
</entry>
<entry name="useExtraRunners" type="Bool">
<label>Whether to use additional KRunner plugins to produce results in the search.</label>
<default>true</default>
</entry>
<entry name="runners" type="StringList">
<label>The plugin id's of additional KRunner plugins to use. Only used if useExtraRunners is true.</label>
<default>shell,bookmarks,recentdocuments,locations,baloosearch</default>
</entry>
<entry name="menuItems" type="StringList">
<label>The menu tabs to show.</label>
......
......@@ -29,7 +29,6 @@ ColumnLayout {
property string cfg_icon: plasmoid.configuration.icon
property alias cfg_switchTabsOnHover: switchTabsOnHoverCheckbox.checked
property alias cfg_showAppsByName: showApplicationsByNameCheckbox.checked
property alias cfg_useExtraRunners: useExtraRunners.checked
property alias cfg_alphaSort: alphaSort.checked
property alias cfg_menuItems: configButtons.menuItems
......@@ -101,9 +100,10 @@ ColumnLayout {
text: i18n("Show applications by name")
}
CheckBox {
id: useExtraRunners
text: i18n("Expand search to bookmarks, files and emails")
Button {
icon.name: "settings-configure"
text: i18n("Configure enabled search plugins")
onPressed: KQuickAddons.KCMShell.open(["kcm_plasmasearch"])
}
CheckBox {
......
......@@ -49,20 +49,8 @@ Item {
Kicker.RunnerModel {
id: runnerModel
appletInterface: plasmoid
runners: {
var runners = ["desktopsessions", "services", "places",
"PowerDevil", "calculator", "unitconverter"];
if (plasmoid.configuration.useExtraRunners) {
runners = runners.concat(plasmoid.configuration.runners);
}
return runners;
}
mergeResults: true
favoritesModel: globalFavorites
}
......
......@@ -60,7 +60,7 @@ SearchConfigModule::SearchConfigModule(QWidget* parent, const QVariantList& args
QHBoxLayout *headerLayout = new QHBoxLayout(this);
QLabel *label = new QLabel(i18n("Enable or disable KRunner plugins:"));
QLabel *label = new QLabel(i18n("Enable or disable plugins (used in KRunner and Application Launcher)"));
m_clearHistoryButton = new QPushButton(i18n("Clear History"));
m_clearHistoryButton->setIcon(QIcon::fromTheme(isRightToLeft() ? QStringLiteral("edit-clear-locationbar-ltr")
......
Markdown is supported
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