Bug 501837

Summary: System tray for Windows is broken
Product: [Applications] NeoChat Reporter: Gary Wang <wzc782970009>
Component: GeneralAssignee: Tobias Fella <fella>
Status: REPORTED ---    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gary Wang 2025-03-21 16:30:38 UTC
SUMMARY

When the "show in system tray" option is enabled. Closing the application window will still cause the application to quit instead of hide to the system tray.

STEPS TO REPRODUCE

1. Open NeoChat, login with an account
2. Open settings dialog, tick on the first option under General/General Settings section, which is show in system tray (I didn't check the exact English copywriting since I'm not using English as UI language)
3. Close the settings dialog, then close the main window.
4. See the result (application is exited, nothing in system tray)

OBSERVED RESULT

After doing the reproduce steps, application is exited, nothing in system tray

EXPECTED RESULT

Application stays in system tray.

SOFTWARE/OS VERSIONS
Windows: Windows 11 24H2
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION

If we enable the option but don't close the window, we can see system tray have an icon (while invisible probably due to white color on white background) for NeoChat. Clicking that icon will toogle the main window's visiblity. But if we close the main window and the settings dialog, the application will be exited.