From 82480e6079d0a0d3a5030c15a5738238d9c21f26 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 1 Apr 2019 17:07:15 +0300 Subject: [PATCH] fix warnings,closing Latte with custom indicators --- .../package/contents/ui/indicators/styles/LatteIndicator.qml | 4 +++- plasmoid/package/contents/ui/main.qml | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plasmoid/package/contents/ui/indicators/styles/LatteIndicator.qml b/plasmoid/package/contents/ui/indicators/styles/LatteIndicator.qml index 750eaca32..679403226 100644 --- a/plasmoid/package/contents/ui/indicators/styles/LatteIndicator.qml +++ b/plasmoid/package/contents/ui/indicators/styles/LatteIndicator.qml @@ -51,7 +51,9 @@ LatteComponents.IndicatorItem{ readonly property bool reversedEnabled: indicator && indicator.general ? indicator.general.reversed : false //! Configuration Options - readonly property bool configurationEnabled: (indicator!==null) && (indicator.configuration !== null) + readonly property bool configurationEnabled: (indicator!==null) + && (indicator.configuration !== null) + && (indicator.configuration.glow3D !== undefined) readonly property bool extraDotOnActive: configurationEnabled ? indicator.configuration.extraDotOnActive : true readonly property bool minimizedTaskColoredDifferently: configurationEnabled ? indicator.configuration.minimizedTaskColoredDifferently : false diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index 8ad86a435..0a86acc6f 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -288,10 +288,11 @@ Item { color: "white" } */ onLatteViewChanged: { - if (latteView) + if (latteView) { plasmoid.configuration.isInLatteDock = true; - else + } else { plasmoid.configuration.isInLatteDock = false; + } }