dai
dai copied to clipboard
menu items have no event attached
If you click on New Note instead of the shortcut, nothing happens.
Yeah, you're right. Ran out of time 🙈
If you wanna give it a shot I'll be happy to merge it in!
You can use
` import { appWindow } from '@tauri-apps/api/window'
appWindow.listen('tauri://menu', ({ event, payload }) => { console.log(event, payload) })`
the payload holds the menu item label
I tried to implement it into your application but it was triggered 4 times on click and I didn't know why.