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'm developing a macos application. When the app starts, I hope it only show in menu bar, doesn't show in dock. And there is a settings menu item in the menu, a window would appear after clicking the settings menu item. When the window appears, I want the app icon to show in dock. When the window gets closed, I want the app icon to hide in dock.
I've tried app.set_activation_policy(tauri::ActivationPolicy::Accessory)); to hide it when app starts, but I cannot access app in on_system_tray_event and on_window_event. I need to show app icon in dock when the window appears.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm developing a macos application. When the app starts, I hope it only show in menu bar, doesn't show in dock. And there is a
settings
menu item in the menu, a window would appear after clicking thesettings
menu item. When the window appears, I want the app icon to show in dock. When the window gets closed, I want the app icon to hide in dock.I've tried
app.set_activation_policy(tauri::ActivationPolicy::Accessory));
to hide it when app starts, but I cannot accessapp
inon_system_tray_event
andon_window_event
. I need to show app icon in dock when the window appears.Beta Was this translation helpful? Give feedback.
All reactions