consider all taskmanagers in algorithms

--in the past only the Latte plasmoid was considered are
Tasks plasmoid
pull/1/head
Michail Vourlakos 8 years ago
parent 41c0b094e7
commit 1b0b2a24b8

@ -1226,10 +1226,11 @@ bool DockView::tasksPresent()
}
foreach (Plasma::Applet *applet, this->containment()->applets()) {
KPluginMetaData meta = applet->kPackage().metadata();
const auto &provides = KPluginMetaData::readStringList(applet->pluginMetaData().rawData(), QStringLiteral("X-Plasma-Provides"));
if (meta.pluginId() == "org.kde.latte.plasmoid")
if (provides.contains(QLatin1String("org.kde.plasma.multitasking"))) {
return true;
}
}
return false;

Loading…
Cancel
Save