Commit c31e5963 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Clear smart launcher data when launcher URL changes

Task Manager occasionally re-uses task manager delegates, so the launcher URL can change during the lifetime of the object.
I already take care of this by resetting the storageId but I did not clear any badge or progress we might still have,
leading to wrong or random apps showing a badge that won't go away.

Differential Revision:
parent 2edca0b1
......@@ -120,6 +120,7 @@ void Item::setLauncherUrl(const QUrl &launcherUrl)
emit launcherUrlChanged(launcherUrl);
if (launcherUrl.scheme() == QStringLiteral("applications")) {
const KService::Ptr service = KService::serviceByMenuId(launcherUrl.path());
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