respect always appletIsExpandable flag

--this way applets that during start were
expandable and now they are not, they do
not trigger expanded codepaths
work/spdx
Michail Vourlakos 4 years ago
parent 836aba7ba4
commit 597ee4af5f

@ -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();
}
}
}

Loading…
Cancel
Save