From 597ee4af5f667e0ba1f170831ffe7108ea46d6c4 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 8 May 2021 14:48:10 +0300 Subject: [PATCH] respect always appletIsExpandable flag --this way applets that during start were expandable and now they are not, they do not trigger expanded codepaths --- app/view/containmentinterface.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/view/containmentinterface.cpp b/app/view/containmentinterface.cpp index 8ab82757e..711f478e9 100644 --- a/app/view/containmentinterface.cpp +++ b/app/view/containmentinterface.cpp @@ -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(); if (ai) { - if (appletIsExpandable(ai)) { - ai->setExpanded(!ai->isExpanded()); - } else { - emit applet->activated(); - } + emit applet->activated(); } } }