diff options
-rw-r--r-- | gjs/src/file.ts | 4 |
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) + })! } |