plasma: bring back Plasma::RunnerManager::reloadConfiguration() method

does totally different thing tho - the old method was reloading the
configuration of Plasma::RunnerManager while this one reloads the
configuration of the loaded runners. it is a convenience method still that
should not be used as runners are matching for obvious reasons

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-19 07:28:38 +03:00
parent d4ab9eae6c
commit 489bb13a8b
2 changed files with 12 additions and 0 deletions

View file

@ -251,6 +251,13 @@ QMimeData* RunnerManager::mimeDataForMatch(const QueryMatch &match) const
return nullptr;
}
void RunnerManager::reloadConfiguration()
{
foreach (Plasma::AbstractRunner *runner, d->runners) {
runner->reloadConfiguration();
}
}
KPluginInfo::List RunnerManager::listRunnerInfo(const QString &parentApp)
{
QString constraint;

View file

@ -117,6 +117,11 @@ public:
*/
QMimeData* mimeDataForMatch(const QueryMatch &match) const;
/**
* Causes a reload of the configuration of all loaded runners
*/
void reloadConfiguration();
/**
* Returns a list of all known Runner implementations
*