Bug 505744

Summary: system tray icon doesn't show unless 'show system tray' is turned off and then turned back on
Product: [Applications] krdc Reporter: jose
Component: generalAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jose 2025-06-18 14:30:58 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When 'Enable System Tray icon' is set the system tray icon is not activated until the setting is ticked off and then back on. After restarting the icon again does not show

STEPS TO REPRODUCE
1. start krdc with system tray icon enabled - no icon is shown
2. go into settings and toggle the icon off and then back on - this shows the icon
3. quit and restart KRDC - Icon does not display

OBSERVED RESULT
Icon does not display unless the feature is toggled off and then on again

EXPECTED RESULT
Tray icon should be present when the application is started 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: EndeavourOS -Arch Linix variant 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-06-18 20:26:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/203
Comment 2 Fabio 2025-06-18 20:43:47 UTC
Git commit 61168ec71055f119a917b8f895aa8a6d9b94b893 by Fabio Bas.
Committed on 18/06/2025 at 20:26.
Pushed by ctrlaltca into branch 'master'.

Show system tray icon at startup if enabled in settings

M  +4    -0    mainwindow.cpp

https://invent.kde.org/network/krdc/-/commit/61168ec71055f119a917b8f895aa8a6d9b94b893
Comment 3 Fabio 2025-06-18 20:48:06 UTC
Git commit 9f0d8b718f68d1c851691a1ceaf556717835f966 by Fabio Bas.
Committed on 18/06/2025 at 20:45.
Pushed by ctrlaltca into branch 'release/25.04'.

Show system tray icon at startup if enabled in settings


(cherry picked from commit 61168ec71055f119a917b8f895aa8a6d9b94b893)

Co-authored-by: Fabio Bas <ctrlaltca@gmail.com>

M  +4    -0    mainwindow.cpp

https://invent.kde.org/network/krdc/-/commit/9f0d8b718f68d1c851691a1ceaf556717835f966