-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: expose internal TrayIcon #13959
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
feat: expose internal TrayIcon #13959
Conversation
Package Changes Through 714aa60There are 10 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-utils with minor, tauri-bundler with minor, tauri-macos-sign with minor, tauri-runtime-wry with minor, @tauri-apps/api with minor, tauri-runtime with minor, tauri-plugin with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Thanks for the PR! Would you mind adding a comment similar to the one we have here? https://docs.rs/tauri/latest/tauri/webview/struct.WebviewWindow.html#method.with_webview If we expose the TrayIcon instance like this updating tray-icon would be a breaking change strictly speaking. Also, I'd appreciate a changefile (check the .changes dir for examples) :) |
|
@FabianLars definitely makes sense, thanks for noting! I added the changes document, and also updated the newly introduced fn to follow the There's one little difference from Thanks for the prompt response! |
|
Fixed the build — somehow an import was removed from tests, reverted 🤷 |
Hello there! Thanks a lot for Tauri.
This PR exposes the internal TrayIcon to be able to access the platform implementations.
This is pretty important and my use case is to access the underlying
ns_status_item()(and then NSWindow, and then NSScreen). TrayIcon already exposes that, but it's unavailable if using the Tauri plugin.