diff --git a/Services/NightLightService.qml b/Services/NightLightService.qml index 36932d8..3719a29 100644 --- a/Services/NightLightService.qml +++ b/Services/NightLightService.qml @@ -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