mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-04 03:06:57 +00:00
Lockscreen: fix initial weather fetching
+ added a little breathing room to the UI at the top
This commit is contained in:
@@ -27,9 +27,12 @@ WlSessionLock {
|
||||
property double currentTemp: 0
|
||||
locked: false
|
||||
|
||||
// On component completed, fetch weather data
|
||||
// On component completed, request to fetch weather data, with a little delay.
|
||||
// Without this delay the city name is not loaded yet.
|
||||
Component.onCompleted: {
|
||||
fetchWeatherData();
|
||||
Qt.callLater(function () {
|
||||
fetchWeatherData();
|
||||
})
|
||||
}
|
||||
|
||||
// Weather fetching function
|
||||
@@ -351,8 +354,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
|
||||
|
||||
Reference in New Issue
Block a user