summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 09:07:12 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-02 12:03:04 +0100
commit795d551639340d81641aa8c6eabff1776e0b2ee1 (patch)
tree6b5399a790a3ebcbcb8cde069dfd2c31a468679d
parentf0b2dd171acd7c809325134f7c99a9cf03a214db (diff)
downloadkube-795d551639340d81641aa8c6eabff1776e0b2ee1.tar.gz
kube-795d551639340d81641aa8c6eabff1776e0b2ee1.zip
Ignore messages that have nothing to say.
-rw-r--r--components/kube/qml/Kube.qml4
-rw-r--r--views/log/qml/View.qml4
2 files changed, 7 insertions, 1 deletions
diff --git a/components/kube/qml/Kube.qml b/components/kube/qml/Kube.qml
index 34c2a59e..3a970733 100644
--- a/components/kube/qml/Kube.qml
+++ b/components/kube/qml/Kube.qml
@@ -82,7 +82,9 @@ Controls2.ApplicationWindow {
82 Kube.Listener { 82 Kube.Listener {
83 filter: Kube.Messages.notification 83 filter: Kube.Messages.notification
84 onMessageReceived: { 84 onMessageReceived: {
85 notificationPopup.notify(message.message); 85 if (message.message) {
86 notificationPopup.notify(message.message);
87 }
86 } 88 }
87 } 89 }
88 90
diff --git a/views/log/qml/View.qml b/views/log/qml/View.qml
index 7e95e20f..9b2ac24a 100644
--- a/views/log/qml/View.qml
+++ b/views/log/qml/View.qml
@@ -42,6 +42,10 @@ Controls.SplitView {
42 Kube.Listener { 42 Kube.Listener {
43 filter: Kube.Messages.notification 43 filter: Kube.Messages.notification
44 onMessageReceived: { 44 onMessageReceived: {
45 //Ignore noise that we can't usefully render anyways
46 if (!message.message) {
47 return
48 }
45 if (message.type == Kube.Notifications.error) { 49 if (message.type == Kube.Notifications.error) {
46 root.pendingError = true 50 root.pendingError = true
47 } 51 }