-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] two problems of menus on tauri v2 #7828
Comments
Thanks for reporting! The first one I'm not sure if those texts are controlled by the system. I'll try some ways to find out. |
The first problem is a weird behavior of the macOS that we can't set the title for some system-defined actions. This also happened to the electron (ref) and they wrapped it with another custom action to avoid that. I also found that if we are using @amrbashir How do you think? |
@pewsheen lets use a custom selector then like electron. |
I just know why macOS is controlling these items 🥲 Redo and undo are controlled by the window's
If we want to wrap these methods, each time we set a new title for the menu item we need to create a subclass of |
I'd say go with what you feel best and then we can discuss your approach in the PR other than speculating here. |
The first bug seems have been fixed. (Test on tauri The second bug I open a new issue. #8465 |
Describe the bug
There are three native menus failed to apply custom text.
Source code: click here
I change different window's menu bar by listening
WindowEvent::Focused
inon_window_event
. But re-focus window will make app crashed.Source code: click here
Reproduction
https://github.com/percy507/test-tauri-v2
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: