KeepassXC hide to system tray when minimized not working

I’m using KDE Plasma 6.

I’ve made KeepassXC show a system tray icon.

I can hide it’s window by clicking that tray icon, but strangely only while the window is active. Pretty sure on my previous Manjaro installation that worked.

The “Hide window to system tray when minimized” check-mark is set, but it doesn’t do anything.

After switching back to Manjaro, I found out that the cause of this issue is using a plasma+wayland session instead of plasma+x11.

see also: