summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-19 09:50:01 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-19 09:50:01 +0200
commitcb11bc9d6d0f844f34a1c54882e75f8c9dea5feb (patch)
treebbc2d1c3344a1e20880d4a1331b9cb31ac598389 /main
parentd93b66ad4d6b1dae42cc318c16224d03bd1a1472 (diff)
[Windows] Fix main window project icon not set when using editor executable.
Diffstat (limited to 'main')
-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);