Skip to content
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] [v2] trayIcon set_visible(true) method is not working #10150

Open
gusxodnjs opened this issue Jun 29, 2024 · 3 comments
Open

[bug] [v2] trayIcon set_visible(true) method is not working #10150

gusxodnjs opened this issue Jun 29, 2024 · 3 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@gusxodnjs
Copy link

gusxodnjs commented Jun 29, 2024

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

@gusxodnjs gusxodnjs added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jun 29, 2024
@amrbashir
Copy link
Member

@pewsheen could you take a look at this

@pewsheen
Copy link
Contributor

pewsheen commented Jul 3, 2024

Show/Hide tray icon in that reproduction repo works on my macOS 14. I'll try running it on a macOS 13.

@pewsheen
Copy link
Contributor

pewsheen commented Jul 3, 2024

It also works on my macOS 13.5.2 VM. 🤔

@gusxodnjs Did you get any error messages when showing or hiding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants