From 8e52e9fd85faa44b57a4f7df98c7407c5e79cca0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 17 Apr 2017 11:54:28 +0200 Subject: Hide the empty outbox. It's sole purpose it to show if you have pending messages, no point in showing it otherwise. --- framework/qml/Outbox.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index 9d14120a..07c0c6d2 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml @@ -28,6 +28,8 @@ import org.kube.framework 1.0 as Kube Rectangle { id: root + visible: outboxModel.count > 0 + Kube.OutboxController { id: outboxController } @@ -55,7 +57,7 @@ Rectangle { Text { id: text anchors.verticalCenter: parent.verticalCenter - text: outboxModel.count > 0 ? "Outbox (" + outboxModel.count + ")" : "Outbox" + text: outboxModel.count > 0 ? "Pending (" + outboxModel.count + ")" : "Outbox" color: Kube.Colors.highlightedTextColor } Icon { -- cgit v1.2.3