From 840a10e9512a8f097753b06900918666a9abe1a0 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 28 Mar 2016 20:35:43 -0700 Subject: [PATCH] Fix Message Indicator display --- src/ui/toolbar/MainToolBarIndicators.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/toolbar/MainToolBarIndicators.qml b/src/ui/toolbar/MainToolBarIndicators.qml index f20bc44c6..b2d4e885d 100644 --- a/src/ui/toolbar/MainToolBarIndicators.qml +++ b/src/ui/toolbar/MainToolBarIndicators.qml @@ -95,13 +95,13 @@ Row { id: messages width: mainWindow.tbCellHeight height: mainWindow.tbCellHeight - visible: activeVehicle ? activeVehicle.messageCount : false + visible: activeVehicle && activeVehicle.messageCount anchors.verticalCenter: parent.verticalCenter Item { id: criticalMessage anchors.fill: parent - visible: activeVehicle ? (activeVehicle.messageCount > 0 && isMessageImportant) : false + visible: activeVehicle && activeVehicle.messageCount > 0 && isMessageImportant Image { source: "/qmlimages/Yield.svg" @@ -137,6 +137,7 @@ Row { id: messageIcon source: "/qmlimages/Megaphone.svg" height: mainWindow.tbCellHeight * 0.5 + width: height fillMode: Image.PreserveAspectFit color: getMessageColor() anchors.verticalCenter: parent.verticalCenter -- 2.22.0