From c5487f7278d1e614620c886d43e4399cfcca6935 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Tue, 30 Aug 2022 09:59:24 +0200 Subject: [PATCH] Location source: Emit the time-changed signal when enabling --- src/modules/SourceLocation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/SourceLocation.js b/src/modules/SourceLocation.js index d0b4d06..766fec3 100644 --- a/src/modules/SourceLocation.js +++ b/src/modules/SourceLocation.js @@ -49,6 +49,7 @@ var SourceLocation = class extends Source { this.#connectToGeoclue(); this.#watchForTimeChange(); this.#regularlyUpdateSuntimes(); + this.emit('time-changed', this.time); debug.message('Location source enabled.'); }