Merge pull request #53 from quadbyte/lockscreen-weather-fix
Lockscreen: fix initial weather fetching
This commit is contained in:
commit
c97fdb9fda
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue