core
core copied to clipboard
windows: nil reference panic while switching remote desktop sessions
Describe the bug
at some point of time it is possible that a Screens' slice is empty and a window needs to be updated.
it was discovered during my work on https://github.com/cogentcore/core/issues/1458
How to reproduce
- run a
Coreapp on Windows machine; - run a
Windows App(Microsoft Remote Desktop) on macOS; - connect to the Windows machine.
Example code
Relevant output
Platform
Windows