From 96a9ff841837d78a8c2ef0ab2840996db9f1b4c2 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Mon, 12 Nov 2018 19:09:16 +0530 Subject: [PATCH] Revert "Show notifications, always set notifications applet as expaned" This reverts commit 96db9776a9333db9057c2e74e500c31cd7fe4b09. that makes half of quicksettings options disappear... wat? it is confusing. --- containments/panel/package/contents/ui/main.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 4222553f..cc6421c9 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -57,11 +57,17 @@ PlasmaCore.ColorScope { applet.visible = true; container.visible = true; if (applet.pluginName == "org.kde.phone.notifications") { - applet.expanded = true applet.fullRepresentationItem.parent = notificationsParent; notificationsParent.applet = applet; applet.fullRepresentationItem.anchors.fill = notificationsParent; - } + } else if (applet.pluginName != "org.kde.phone.quicksettings") { + applet.expanded = true + applet.expanded = false + quickSettings.addPlasmoid(applet, fullRepsLayout.count); + applet.fullRepresentationItem.parent = fullRepsLayout; + fullRepsLayout.currentIndex = 0 + applet.fullRepresentationItem.anchors.fill = fullRepsLayout; + } } Component.onCompleted: {