Merge pull request #53 from quadbyte/lockscreen-weather-fix

Lockscreen: fix initial weather fetching
This commit is contained in:
Lysec 2025-07-30 14:20:49 +02:00 committed by GitHub
commit c97fdb9fda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,8 +27,11 @@ WlSessionLock {
property double currentTemp: 0
locked: false
// Request to fetch weather with a little delay to ensure weatherCity is properly loaded.
Component.onCompleted: {
fetchWeatherData();
Qt.callLater(function () {
fetchWeatherData();
})
}
function fetchWeatherData() {
@ -332,8 +335,8 @@ WlSessionLock {
}
Rectangle {
width: infoColumn.width + 16
height: infoColumn.height
width: infoColumn.width + 32
height: infoColumn.height + 8
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
anchors.horizontalCenter: parent.horizontalCenter
bottomLeftRadius: 20