From 458b86c29b5c5f501ea613b1799a738eb7413f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 15 Sep 2024 21:46:16 +0200 Subject: [PATCH] Allow not setting icon --- GlitchyEngine/src/Platform/Windows/WindowsWindow.bf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf index a8e4c41..1490ebb 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf @@ -259,7 +259,8 @@ namespace GlitchyEngine // Determine whether or not the window is currently active _isActive = GetActiveWindow() == _windowHandle; - SetIcon(desc.Icon); + if (!desc.Icon.IsEmpty) + SetIcon(desc.Icon); } private bool _isResizingOrMoving;