summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-01-30 09:16:36 (GMT)
committerEike Hein <hein@kde.org>2017-01-30 09:17:45 (GMT)
commit37a5d9fb5d0b87b50756555348a17f5d1c523cf5 (patch)
tree4c5fe14371356212ee1ecfca8d0512eb2e112aa5
parentf37514e2b551525464cddf08f865a2bbb093cf1f (diff)
Fix Plasmoid.busy visualization in desktop containment.
Test Plan: Set plasmoid.busy=true/false to toggle a busy spinner overlay. Reviewers: #plasma, davidedmundson Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4341
-rw-r--r--containments/desktop/package/contents/ui/AppletAppearance.qml17
1 files changed, 9 insertions, 8 deletions
diff --git a/containments/desktop/package/contents/ui/AppletAppearance.qml b/containments/desktop/package/contents/ui/AppletAppearance.qml
index 252be57..6571159 100644
--- a/containments/desktop/package/contents/ui/AppletAppearance.qml
+++ b/containments/desktop/package/contents/ui/AppletAppearance.qml
@@ -184,13 +184,7 @@ Item {
}
Connections {
target: applet
- onBusyChanged: {
- if (applet.busy) {
- busyLoader.source = "BusyOverlay.qml"
- } else if (busyLoader.item && typeof(busyLoader.item) != "undefined") {
- busyLoader.item.disappear();
- }
- }
+
onBackgroundHintsChanged: {
// print("plasmoid.backgroundHintsChanged");
updateBackgroundHints();
@@ -300,7 +294,7 @@ Item {
applet.parent = appletContainer;
applet.anchors.fill = appletContainer;
-
+
updateBackgroundHints();
}
Connections {
@@ -329,8 +323,15 @@ Item {
}
Loader {
id: busyLoader
+
anchors.centerIn: parent
+
z: appletContainer.z + 1
+
+ active: applet.busy
+
+ source: "BusyOverlay.qml"
+ asynchronous: true
}
Component.onCompleted: PlasmaExtras.AppearAnimation {