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
|
property double currentTemp: 0
|
||||||
locked: false
|
locked: false
|
||||||
|
|
||||||
|
// Request to fetch weather with a little delay to ensure weatherCity is properly loaded.
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
Qt.callLater(function () {
|
||||||
fetchWeatherData();
|
fetchWeatherData();
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchWeatherData() {
|
function fetchWeatherData() {
|
||||||
|
|
@ -332,8 +335,8 @@ WlSessionLock {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: infoColumn.width + 16
|
width: infoColumn.width + 32
|
||||||
height: infoColumn.height
|
height: infoColumn.height + 8
|
||||||
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
bottomLeftRadius: 20
|
bottomLeftRadius: 20
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue