I need to hide app icon in Dock after closing the app. By default Dock shows icons of recent apps.
I can\'t use LSUIElement because I need icon when the app is runnin