From 489bb13a8b04ca3c5e8a565253486758f4ed96fc Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 19 Apr 2024 07:28:38 +0300 Subject: [PATCH] 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 --- plasma/runnermanager.cpp | 7 +++++++ plasma/runnermanager.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/plasma/runnermanager.cpp b/plasma/runnermanager.cpp index 3721ab1b..deb9a0c3 100644 --- a/plasma/runnermanager.cpp +++ b/plasma/runnermanager.cpp @@ -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; diff --git a/plasma/runnermanager.h b/plasma/runnermanager.h index e1f2f578..fda4beea 100644 --- a/plasma/runnermanager.h +++ b/plasma/runnermanager.h @@ -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 *