mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
use activate signal for (not)expand
--for all neutral areas (such as spacers or activate indicator spacers) the activate signal in sent in order to activate an applet or expand it / hide it...
This commit is contained in:
parent
9066fa9356
commit
4eac963d74
@ -1420,7 +1420,11 @@ void DockView::toggleAppletExpanded(const int id)
|
||||
PlasmaQuick::AppletQuickItem *ai = applet->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>();
|
||||
|
||||
if (ai) {
|
||||
ai->setExpanded(!ai->isExpanded());
|
||||
if (!ai->isActivationTogglesExpanded()) {
|
||||
ai->setActivationTogglesExpanded(true);
|
||||
}
|
||||
|
||||
emit applet->activated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user