Rocket.Chat 4.0.0 Desktop Client crashes on rootWindow.addListener('close', ...)
when isTrayIconEnabled === false && process.platform === 'linux'
#2906
Labels
Search before asking
Operating System
Operating System Version
Arch Linux
It happens on the web browser too?
No, it just happens on the Desktop app
Rocket.Chat Desktop App Version
4.0.0
Rocket.Chat Server Version
6.7
Describe the bug
When closing via
X
-Icon while the tray-icon has been disabled, the app crashes with the following message:Closing via
Ctrl + Q
orFile => Quit Rocket.Chat
doesn't trigger the error.How to Reproduce
Tray Icon
X
Describe your Expected behavior
The app should close like the other methods, without error.
Anything else
I've unpacked the
app.asar
and opened the affected file on the described line.It shows me the following line:
Rocket.Chat.Electron/src/ui/main/rootWindow.ts
Line 283 in b4aeef4
The other methods utilize
app.quit()
as seen in.Rocket.Chat.Electron/src/ui/main/menuBar.ts
Lines 111 to 115 in b4aeef4
Are you willing to submit a code contribution?
The text was updated successfully, but these errors were encountered: