mirror of
https://github.com/godotengine/godot
synced 2024-10-15 01:10:09 +00:00
[Windows] Fix main window project icon not set when using editor executable.
This commit is contained in:
parent
d93b66ad4d
commit
cb11bc9d6d
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue