NightLight: if using autoSchedule, wait for coordinates to be ready
This commit is contained in:
parent
2f8472f720
commit
dda031e73b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue