Window doesn't render when called for the first time from system tray and the last window was closed #4163
Closed
2 tasks done
Labels
bug
Something isn't working
Milestone
Checklist
Describe the bug
I have an app set up with a system tray and splash screen, where the main window is hidden on startup until you open it from the systray. What I found is that if I don't render the window before the splash screen closes the window won't render. On windows by resizing it renders, on ubuntu it doesn't even do that.
I did find that using
Hide
on the splash screen instead ofClose
avoids the issue, so it's something about the last visibly window callingClose
I guess? Couldn't find anything I could understand in the sources.How to reproduce
build an app with a splash screen, no other window showing on startup, and a systray to open a window.
Screenshots
I'm not on my windows machine now so I'll grab that later but here's the linux:
Example code
Fyne version
both latest (2.3.5) and develop (v2.3.6-0.20230815202934-6f2c727d711a)
Go compiler version
1.20.5
Operating system and version
windows 11, 10, kubuntu 5.27.4
Additional Information
No response
The text was updated successfully, but these errors were encountered: