From 2ac5e1dc357bdf388e107511042428570767e3d7 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 3 Jul 2018 10:35:09 +0200 Subject: Avoid highlighting the iconbutton again if we're already looking at the logview. --- views/log/qml/View.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/views/log/qml/View.qml b/views/log/qml/View.qml index 4dc2bce8..5c4cabee 100644 --- a/views/log/qml/View.qml +++ b/views/log/qml/View.qml @@ -54,12 +54,14 @@ Controls1.SplitView { if (!message.message) { return } - if (message.type == Kube.Notifications.error) { - root.pendingError = true + //Avoid highlighting the iconbutton again if we're already looking at this view. + if (!Controls2.StackView.visible) { + if (message.type == Kube.Notifications.error) { + root.pendingError = true + } + root.pendingNotification = true } - root.pendingNotification = true - var error = { timestamp: new Date(), message: message.message, -- cgit v1.2.3