handle all events

This commit is contained in:
James Long 2026-04-28 21:34:47 -04:00
parent 6df566161e
commit fdfe599cb5

View file

@ -12,22 +12,7 @@ export function useEvent() {
return
}
// Special hack for truly global events
if (event.directory === "global") {
handler(event.payload)
}
if (project.workspace.current()) {
if (event.workspace === project.workspace.current()) {
handler(event.payload)
}
return
}
if (event.directory === project.instance.directory()) {
handler(event.payload)
}
handler(event.payload)
})
}