diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-17 11:54:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-17 11:55:28 +0200 |
commit | 8e52e9fd85faa44b57a4f7df98c7407c5e79cca0 (patch) | |
tree | 750992f98dd8d3f4ac7b076b39e917c311e1516a | |
parent | 33a9383df55a39b2ea2322808bb38fbed5db33b1 (diff) | |
download | kube-8e52e9fd85faa44b57a4f7df98c7407c5e79cca0.tar.gz kube-8e52e9fd85faa44b57a4f7df98c7407c5e79cca0.zip |
Hide the empty outbox.
It's sole purpose it to show if you have pending messages,
no point in showing it otherwise.
-rw-r--r-- | framework/qml/Outbox.qml | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
28 | Rectangle { | 28 | Rectangle { |
29 | id: root | 29 | id: root |
30 | 30 | ||
31 | visible: outboxModel.count > 0 | ||
32 | |||
31 | Kube.OutboxController { | 33 | Kube.OutboxController { |
32 | id: outboxController | 34 | id: outboxController |
33 | } | 35 | } |
@@ -55,7 +57,7 @@ Rectangle { | |||
55 | Text { | 57 | Text { |
56 | id: text | 58 | id: text |
57 | anchors.verticalCenter: parent.verticalCenter | 59 | anchors.verticalCenter: parent.verticalCenter |
58 | text: outboxModel.count > 0 ? "Outbox (" + outboxModel.count + ")" : "Outbox" | 60 | text: outboxModel.count > 0 ? "Pending (" + outboxModel.count + ")" : "Outbox" |
59 | color: Kube.Colors.highlightedTextColor | 61 | color: Kube.Colors.highlightedTextColor |
60 | } | 62 | } |
61 | Icon { | 63 | Icon { |