summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-19 10:08:57 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-19 10:08:57 +0100
commit9de2da1a9687bef1d83f7d1a9e36430490cc0f33 (patch)
tree6988fd85653efb2a69a8feb4c618a5fc53a2c867
parentbcb57b42f612e21e2b0f028ffdc069a600fe1789 (diff)
parentcb11bc9d6d0f844f34a1c54882e75f8c9dea5feb (diff)
Merge pull request #71661 from bruvzg/win_main_icon
[Windows] Fix main window project icon not set when using editor executable.
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 00c6b1fecd..4a73d7ab8c 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<Image> icon = memnew(Image(app_icon_png));
DisplayServer::get_singleton()->set_icon(icon);