Allow not setting icon

This commit is contained in:
Simon Lübeß
2024-09-15 21:46:16 +02:00
parent 849615a199
commit 458b86c29b
@@ -259,7 +259,8 @@ namespace GlitchyEngine
// Determine whether or not the window is currently active // Determine whether or not the window is currently active
_isActive = GetActiveWindow() == _windowHandle; _isActive = GetActiveWindow() == _windowHandle;
SetIcon(desc.Icon); if (!desc.Icon.IsEmpty)
SetIcon(desc.Icon);
} }
private bool _isResizingOrMoving; private bool _isResizingOrMoving;