mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Merge pull request #53 from quadbyte/lockscreen-weather-fix
Lockscreen: fix initial weather fetching
This commit is contained in:
@@ -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: {
|
||||||
fetchWeatherData();
|
Qt.callLater(function () {
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user