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:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user