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

Loading…
Cancel
Save