diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-03 10:35:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-03 10:35:09 +0200 |
commit | 2ac5e1dc357bdf388e107511042428570767e3d7 (patch) | |
tree | 04dfd2a2503cefc671aa475a8e3fc868aec4fa5c | |
parent | 4a08127caceff75d9e0ad4b20e6195c30a809447 (diff) | |
download | kube-2ac5e1dc357bdf388e107511042428570767e3d7.tar.gz kube-2ac5e1dc357bdf388e107511042428570767e3d7.zip |
Avoid highlighting the iconbutton again if we're already looking at the
logview.
-rw-r--r-- | views/log/qml/View.qml | 10 |
1 files 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 { | |||
54 | if (!message.message) { | 54 | if (!message.message) { |
55 | return | 55 | return |
56 | } | 56 | } |
57 | if (message.type == Kube.Notifications.error) { | 57 | //Avoid highlighting the iconbutton again if we're already looking at this view. |
58 | root.pendingError = true | 58 | if (!Controls2.StackView.visible) { |
59 | if (message.type == Kube.Notifications.error) { | ||
60 | root.pendingError = true | ||
61 | } | ||
62 | root.pendingNotification = true | ||
59 | } | 63 | } |
60 | 64 | ||
61 | root.pendingNotification = true | ||
62 | |||
63 | var error = { | 65 | var error = { |
64 | timestamp: new Date(), | 66 | timestamp: new Date(), |
65 | message: message.message, | 67 | message: message.message, |