diff options
author | Aylur <[email protected]> | 2024-08-04 20:48:50 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-08-04 20:48:50 +0200 |
commit | 67326ad17e09ff13124e0ad846ed5ff29ffb2725 (patch) | |
tree | 8e054363ee24e8e525d0bed3dc3eae552961c852 | |
parent | 4da9ccc35cc43269b7e41570115398709425e0b0 (diff) |
fix(gjs): monitorFile callback return value
-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) + })! } |