From 26229aaefa1c3a03a771462d211582fdd300c41b Mon Sep 17 00:00:00 2001 From: Ismael Asensio <ismailof@github.com> Date: Sun, 21 Jul 2019 17:19:20 +0200 Subject: [PATCH] Prevents setting diskColour and transparent shadow --- package/contents/ui/configGeneral.qml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/package/contents/ui/configGeneral.qml b/package/contents/ui/configGeneral.qml index b868759..4e8565f 100644 --- a/package/contents/ui/configGeneral.qml +++ b/package/contents/ui/configGeneral.qml @@ -46,7 +46,16 @@ Item { onCfg_lunarIndexChanged: { cfg_lunarImage = imageChoices.get(cfg_lunarIndex).filename cfg_lunarImageTweak = imageChoices.get(cfg_lunarIndex).tweak - } + if (cfg_lunarImage == '') { + cfg_transparentShadow = false //transparentShadow does not work with diskColour + } + } + + onCfg_latitudeAutoChanged: { + if (cfg_latitudeAuto) { + cfg_latitude = geoSource.data.location.latitude + } + } ImageChoices { id: imageChoices @@ -190,12 +199,6 @@ Item { QtControls.CheckBox { id: latitudeAuto text: i18n("Use current latitude") - - onClicked: { - if (cfg_latitudeAuto) { - cfg_latitude = geoSource.data.location.latitude - } - } } QtControls.Label { id: lbl_place @@ -245,6 +248,7 @@ Item { QtControls.CheckBox { id: transparentShadow text: i18n("Transparent shadow") + enabled: cfg_lunarImage != "" } } } -- GitLab