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
+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
}
}
}