Calendar weather: hide double location

This commit is contained in:
ItsLemmy
2025-10-31 10:08:22 -04:00
parent 3a534f8f72
commit 5303a88003
2 changed files with 9 additions and 6 deletions
+6 -5
View File
@@ -253,11 +253,11 @@ NPanel {
}
Behavior on Layout.preferredWidth {
NumberAnimation {
duration: Style.animationFast
easing.type: Easing.InOutQuad
}
}
NumberAnimation {
duration: Style.animationFast
easing.type: Easing.InOutQuad
}
}
ColumnLayout {
anchors.fill: parent
@@ -669,6 +669,7 @@ NPanel {
Layout.fillWidth: true
Layout.preferredHeight: implicitHeight
forecastDays: 6
showLocation: false
}
}
}
+3 -1
View File
@@ -10,6 +10,7 @@ NBox {
id: root
property int forecastDays: 7
property bool showLocation: true
readonly property bool weatherReady: Settings.data.location.weatherEnabled && (LocationService.data.weather !== null)
visible: Settings.data.location.weatherEnabled
@@ -47,6 +48,7 @@ NBox {
}
pointSize: Style.fontSizeL
font.weight: Style.fontWeightBold
visible: showLocation
}
RowLayout {
@@ -73,7 +75,7 @@ NBox {
text: weatherReady ? `(${LocationService.data.weather.timezone_abbreviation})` : ""
pointSize: Style.fontSizeXS
color: Color.mOnSurfaceVariant
visible: LocationService.data.weather
visible: LocationService.data.weather && showLocation
}
}
}