From cb11bc9d6d0f844f34a1c54882e75f8c9dea5feb Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 19 Jan 2023 09:50:01 +0200 Subject: [PATCH] [Windows] Fix main window project icon not set when using editor executable. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 00c6b1fecde0..4a73d7ab8c4f 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2114,7 +2114,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) { #endif } -#ifdef TOOLS_ENABLED +#if defined(TOOLS_ENABLED) && defined(MACOS_ENABLED) if (OS::get_singleton()->get_bundle_icon_path().is_empty()) { Ref icon = memnew(Image(app_icon_png)); DisplayServer::get_singleton()->set_icon(icon);