mirror of
https://github.com/zoriya/astal.git
synced 2026-06-02 02:05:09 +00:00
fix(gjs): monitorFile callback return value
This commit is contained in:
+3
-1
@@ -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)
|
||||
})!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user