NightLight: if using autoSchedule, wait for coordinates to be ready

This commit is contained in:
LemmyCook 2025-08-31 11:04:09 -04:00
parent 2f8472f720
commit dda031e73b

View file

@ -14,6 +14,11 @@ Singleton {
property var lastCommand: []
function apply() {
// If using LocationService, wait for it to be ready
if (params.autoSchedule && !LocationService.coordinatesReady) {
return
}
var command = buildCommand()
// Compare with previous command to avoid unecessary restart