Location: should fix edge case of location data being not ready on time

This commit is contained in:
LemmyCook 2025-08-31 10:24:01 -04:00
parent 3f0374e1f2
commit 6ecbdda121
6 changed files with 51 additions and 45 deletions

View file

@ -329,7 +329,7 @@ ColumnLayout {
NToggle {
label: "Automatic Scheduling"
description: `Based on the sunset and sunrise time in <i>${LocationService.data.stableName}</i> - recommended.`
description: `Based on the sunset and sunrise time in <i>${LocationService.stableName}</i> - recommended.`
checked: Settings.data.nightLight.autoSchedule
onToggled: checked => Settings.data.nightLight.autoSchedule = checked
visible: Settings.data.nightLight.enabled

View file

@ -30,8 +30,8 @@ ColumnLayout {
}
NText {
visible: LocationService.data.coordinatesReady
text: `${LocationService.data.stableName} (${LocationService.displayCoordinates})`
visible: LocationService.coordinatesReady
text: `${LocationService.stableName} (${LocationService.displayCoordinates})`
font.pointSize: Style.fontSizeS * scaling
color: Color.mOnSurfaceVariant
verticalAlignment: Text.AlignVCenter