Bug 493198 - Chat window does not restore from systray icon.
Summary: Chat window does not restore from systray icon.
Status: CONFIRMED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 24.08.1
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 12:55 UTC by bug2017
Modified: 2025-02-07 07:48 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bug2017 2024-09-16 12:55:09 UTC
SUMMARY
It looks like "Show in System Tray" creates the system tray icon, but does not install a window restore handler until application restart. After an application restart it works normal.

STEPS TO REPRODUCE
1.  In General configuration set "Show in System Tray" and "Minimise to system tray on startup"
2. Close the configuration and main window ([x] of the window) 
3.  Click on the system tray icon to get the application back.

OBSERVED RESULT
The window is not restored

EXPECTED RESULT
Restored chat window

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-gentoo-x86_64 (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i9-11900H @ 2.50GHz
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
The systray icons context menu offers only quit. After quitting and restart, the application has expected behavior. except if the check boxes in the config are unchecked and checked again.
Comment 1 Justin Zobel 2024-09-16 18:49:36 UTC
I can confirm in NeoChat from git master.
Comment 2 Haakon Nilsen 2024-11-11 06:31:04 UTC
After setting up NeoChat for the first time and logging into an existing account, I was seeing this too on NeoChat 24.08.3, Plasma 6.2.3, Wayland. Clicking the tray icon did nothing. Right-clicking it displayed only "Quit". So I had to quit, but after restarting, the tray icon has an extra "Restore" option, and when clicking the tray icon, the NeoChat window does indeed restore. After multiple restarts, it still works.

Perhaps this issue only affects first-time runs?
Comment 3 Robert Kratky 2025-02-04 12:50:24 UTC
Can confirm that this is still there.

NeoChat: 25.03.70
Ubuntu 24.10 (Xcb)
libQuotient: 0.9.0 (built against 0.9.0)
KDE Frameworks: 6.11.0
Qt: Using 6.8.1 and built against 6.8.1
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.11.0-14-generic
Comment 4 Martin Brodbeck 2025-02-07 07:46:10 UTC
This issue happens for me often when I have started the PC and logged in to KDE Plasma. Often, I receive some UnifiedPush-Messages, but when I click on the NeoChat tray icon to open the chat window, nothing happens. After right-click -> quit and restarting NeoChat, it works as expected. So for me, it is mostly a problem when the session has been newly started.
Comment 5 Martin Brodbeck 2025-02-07 07:48:38 UTC
(In reply to Martin Brodbeck from comment #4)
> This issue happens for me often when I have started the PC and logged in to
> KDE Plasma. Often, I receive some UnifiedPush-Messages, but when I click on
> the NeoChat tray icon to open the chat window, nothing happens. After
> right-click -> quit and restarting NeoChat, it works as expected. So for me,
> it is mostly a problem when the session has been newly started.

I forgot to mention:
NeoChat 24.12.1
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.1-arch1-1 (64-bit)
Graphics Platform: Wayland