How is this UI design? Wouldn't this fall under UX or just basic functionality? I press X, program close. If I want it minimized I press the minimize button.
How discord works is the expected behaviour for many users, including myself. I do not want to minimize the window (keeping it in the task bar), I want to close the window, while keeping the background worker running.
My experience with applications that show a notification/tray icon is that about 80% of them do not shut down when closing the main window. And the ones that don't follow this pattern by default can usually be configured to work this way.
Microsoft has applications which follow the same pattern. For example the Anti-Virus runs in the background and indicates it status via notification/tray icon. Opening or closing the settings window has no effect on its operation.
I don’t think the background worker is the problem. It’s the fact that the user remains in a call, with their microphone hot, potentially against their expectation
"X" hasn't meant end the process for over 20 years.
In 2022, it could very well be the better choice for most users to not end a voice call just because they clicked the "X" to get rid of the window. Just like what Skype, other Voip services, and most chat services have done forever.
Also, regulatory agencies mandating UI designs - while in this case fairly innocuous - leaves a bad taste in my mouth.