summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/wallpapers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/wallpapers.ts b/src/services/wallpapers.ts
index 39bced4..9a4e5bb 100644
--- a/src/services/wallpapers.ts
+++ b/src/services/wallpapers.ts
@@ -58,10 +58,10 @@ export default class Wallpapers extends GObject.Object {
let monitors = config.paths
.get()
- .flatMap(p => monitorDirectory(p.path, () => this.update().catch(console.error), p.recursive));
+ .map(p => monitorDirectory(p.path, () => this.update().catch(console.error), p.recursive));
config.paths.subscribe(v => {
for (const m of monitors) m.cancel();
- monitors = v.flatMap(p => monitorDirectory(p.path, () => this.update().catch(console.error), p.recursive));
+ monitors = v.map(p => monitorDirectory(p.path, () => this.update().catch(console.error), p.recursive));
});
}
}