Преглед на файлове

[Windows] Fix main window project icon not set when using editor executable.

bruvzg преди 2 години
родител
ревизия
cb11bc9d6d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 		}
 
-#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);