Modify the default File menu #8853
-
I'd like to start with the default menu on Mac OS, but then to add some items to the File menu (e.g. Save). Is this possible? Currently, I can either get my File menu by starting with a completely new menu, or my additions to the File menu are ignored. Cc: #2398 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is only possible in v2. The v1 menu api is too limited and afaik can't be changed to make it possible either. In v2 you can get the current Menu via |
Beta Was this translation helpful? Give feedback.
This is only possible in v2. The v1 menu api is too limited and afaik can't be changed to make it possible either.
In v2 you can get the current Menu via
window.menu()
and then you'll have access to all those apis here https://docs.rs/tauri/2.0.0-beta.2/tauri/menu/struct.Menu.html, including aninsert()
function.