Hey! My application consists of a window and a tray. When my window is closed, the app keeps running in the tray. We can open the window from the tray. I’m using Compose Multiplatform with the Desktop/JVM target.
On macOS, I’m looking for a way to display the dock app icon when my app window is open. When I close my app window, I want to hide the app icon in the dock.
I know how to completely hide the dock app using LSUIElement in the info.plist, but I don’t know how to display my dock icon only when my window is open.
Do you have any ideas? Thank you 🙏