OrangeDrangon / android-messages-desktop

Android Messages as a Cross-platform Desktop App
Other
312 stars 27 forks source link

Tray icon disappears when I launch the app from exe or through link #392

Closed espdav closed 1 year ago

espdav commented 1 year ago

Everytime I want to open Android Messages clicking on the exe file or any link to it, the tray icon disappears. I have to uncheck and re-check 'Enable tray icon' to unhide it. Furthermore, the tray icon remains active if I launch the app from there.

Steps to reproduce the behavior:

  1. Open app and check 'Enable tray icon'
  2. Close app
  3. Re-open app
  4. I notice a white flash on the entire window app (behaviour happening only if the option 'Start in tray' is unchecked)
  5. The tray icon is missing. When I close the window again, the app is still running in background with five instances, which is insane.

Expected behavior I expect to close and run the app from exe/link as often as I want and still see the tray icon active, instead of launching the app from tray icon only.

System info:

OrangeDrangon commented 1 year ago

I can try to reproduce this later. It seems to be platform specific as it is definitely not happening on my linux box.

espdav commented 1 year ago

Ok, please let me know what I can do about it after you checked.

OrangeDrangon commented 1 year ago

I have reproduced this behavior on windows 10. i am surprised no one else has run into it.

espdav commented 1 year ago

Yeah very strange, maybe it depends from some windows update. Just wondering...

OrangeDrangon commented 1 year ago

I think I have fixed this issue. It seems to be some sort of event race between the quit and ready event. I disabled handling the ready event unless it is the first instance.