Browse Source

Merge pull request #71661 from bruvzg/win_main_icon

[Windows] Fix main window project icon not set when using editor executable.
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
9de2da1a96
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main/main.cpp

+ 1 - 1
main/main.cpp

@@ -2114,7 +2114,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
 #endif
 #endif
 		}
 		}
 
 
-#ifdef TOOLS_ENABLED
+#if defined(TOOLS_ENABLED) && defined(MACOS_ENABLED)
 		if (OS::get_singleton()->get_bundle_icon_path().is_empty()) {
 		if (OS::get_singleton()->get_bundle_icon_path().is_empty()) {
 			Ref<Image> icon = memnew(Image(app_icon_png));
 			Ref<Image> icon = memnew(Image(app_icon_png));
 			DisplayServer::get_singleton()->set_icon(icon);
 			DisplayServer::get_singleton()->set_icon(icon);