1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-08-26 05:49:29 +03:00

respect always appletIsExpandable flag

--this way applets that during start were
expandable and now they are not, they do
not trigger expanded codepaths
This commit is contained in:
Michail Vourlakos
2021-05-08 14:48:10 +03:00
parent 836aba7ba4
commit 597ee4af5f

View File

@ -536,7 +536,7 @@ void ContainmentInterface::onAppletExpandedChanged()
}
}
if (added) {
if (added && appletIsExpandable(appletItem)) {
addExpandedApplet(appletItem);
} else {
removeExpandedApplet(appletItem);
@ -582,11 +582,7 @@ void ContainmentInterface::toggleAppletExpanded(const int id)
PlasmaQuick::AppletQuickItem *ai = applet->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>();
if (ai) {
if (appletIsExpandable(ai)) {
ai->setExpanded(!ai->isExpanded());
} else {
emit applet->activated();
}
emit applet->activated();
}
}
}