summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-08-04 20:48:50 +0200
committerAylur <[email protected]>2024-08-04 20:48:50 +0200
commit67326ad17e09ff13124e0ad846ed5ff29ffb2725 (patch)
tree8e054363ee24e8e525d0bed3dc3eae552961c852
parent4da9ccc35cc43269b7e41570115398709425e0b0 (diff)
fix(gjs): monitorFile callback return value
-rw-r--r--gjs/src/file.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/gjs/src/file.ts b/gjs/src/file.ts
index 8875833..90b33a1 100644
--- a/gjs/src/file.ts
+++ b/gjs/src/file.ts
@@ -38,5 +38,7 @@ export function monitorFile(
path: string,
callback: (file: string, event: Gio.FileMonitorEvent) => void,
): Gio.FileMonitor {
- return Astal.monitor_file(path, callback)!
+ return Astal.monitor_file(path, (file: string, event: Gio.FileMonitorEvent) => {
+ callback(file, event)
+ })!
}