tauri
tauri copied to clipboard
[bug] [v2] trayIcon set_visible(true) method is not working
Describe the bug
set_visible method does not seem to work on tauri v2. It works well when visible is false, but the icon is not exposed when it is true again.
Reproduction
https://github.com/gusxodnjs/tauri-issues/tree/bug/tray_icon_set_visible
Expected behavior
No response
Full tauri info output
[✔] Environment
- OS: Mac OS 13.5.2 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.79.0 (129f3b996 2024-06-10)
✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 18.17.0
- yarn: 1.22.21
- npm: 9.6.7
[-] Packages
- tauri [RUST]: 2.0.0-beta.22
- tauri-build [RUST]: 2.0.0-beta.17
- wry [RUST]: 0.40.1
- tao [RUST]: 0.28.1
- tauri-cli [RUST]: 2.0.0-alpha.18
- @tauri-apps/api [NPM]: 2.0.0-beta.13
- @tauri-apps/cli [NPM]: 2.0.0-beta.20
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
No response