fix(weather): read is_day from service instead of requiring callers to pass it.

This commit is contained in:
Lemmy
2026-04-02 16:26:36 -04:00
parent cd4ec47e96
commit 08e2d7f71c
4 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -497,7 +497,7 @@ Item {
NIcon {
visible: !LocationService.taliaWeatherMascotActive || !weatherReady
anchors.centerIn: parent
icon: weatherReady ? LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode, LocationService.data.weather.current_weather.is_day) : "weather-cloud-off"
icon: weatherReady ? LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode) : "weather-cloud-off"
pointSize: Style.fontSizeXXXL
color: Color.mPrimary
}
@@ -512,7 +512,7 @@ Item {
smooth: true
mipmap: true
asynchronous: true
source: Qt.resolvedUrl(LocationService.taliaWeatherImageFromCode(LocationService.data.weather.current_weather.weathercode, LocationService.data.weather.current_weather.is_day))
source: Qt.resolvedUrl(LocationService.taliaWeatherImageFromCode(LocationService.data.weather.current_weather.weathercode))
}
}
}