Merge pull request #71661 from bruvzg/win_main_icon

[Windows] Fix main window project icon not set when using editor executable.
This commit is contained in:
Rémi Verschelde 2023-01-19 10:08:57 +01:00
commit 9de2da1a96
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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);