mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 10:37:50 +00:00
NightLight: if using autoSchedule, wait for coordinates to be ready
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user