You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a tray app and use set_activation_policy(tauri::ActivationPolicy::Accessory) to hide icon from dock.
Recently I am adding deep link feature to my app, and I found that open app from deep link will make dock icon show again.
I also have a tray menu item to toggle window show/hide and it works just fine. Only when accessing from deep link will cause dock icon appear.
Currently, my workaround is call set_activation_policy again when open url is triggered. But it won't prevent dock icon showing but only hide it quickly after it reappears, so there still is a moment that the icon showing.
@FabianLars I only know native swift app works fine, for example, cleanshot x, it is a tray app and you can use deep link to open it without dock icon appearing.
btw, I found a closed issue about window.show() conflits with set_actionvation_policy #5122, don't know if it is related.
Describe the bug
I am building a tray app and use
set_activation_policy(tauri::ActivationPolicy::Accessory)
to hide icon from dock.Recently I am adding deep link feature to my app, and I found that open app from deep link will make dock icon show again.
I also have a tray menu item to toggle window show/hide and it works just fine. Only when accessing from deep link will cause dock icon appear.
rust:
js:
Currently, my workaround is call
set_activation_policy
again when open url is triggered. But it won't prevent dock icon showing but only hide it quickly after it reappears, so there still is a moment that the icon showing.Reproduction
No response
Expected behavior
Dock icon won't show.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: