tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.97k stars 2.46k forks source link

[feat] set_visible for tauri::SystemTrayHandle #3615

Open zsmatrix62 opened 2 years ago

zsmatrix62 commented 2 years ago

Describe the problem

the need is to show/hide system tray on the fly by user's configuration for example, i just checked the doc that this feature is not implemented yet.

https://docs.rs/tauri/1.0.0-rc.3/tauri/struct.SystemTrayHandle.html

Describe the solution you'd like

implement set_visible function to tauri::SystemTrayHandle, signature would be like:

pub fn set_visible(&self, visible: bool) -> Result<()>

Alternatives considered

No response

Additional context

No response

amrbashir commented 2 years ago

/upstream tauri-apps/tao

tauri-apps[bot] commented 2 years ago

I have created an upstream issue at https://github.com/tauri-apps/tao/issues/336, I will notify you once it is resolved.