fix: don't try to set non-existent window icons (#6016)

This commit is contained in:
Perry Fraser
2025-06-09 14:56:01 -04:00
committed by GitHub
parent 18849be0b4
commit 2983517e43

View File

@@ -662,6 +662,10 @@ namespace Robust.Client.Graphics.Clyde
{
var icons = _clyde.LoadWindowIcons().ToArray();
// Done if no icon (e.g., macOS)
if (icons.Length == 0)
return;
// Turn each image into a byte[] so we can actually pin their contents.
// Wish I knew a clean way to do this without allocations.
var images = icons