[macOS] Prefer .app bundle icon over the default one.
This commit is contained in:
parent
b283447bfd
commit
11ccfad1aa
5 changed files with 30 additions and 9 deletions
|
|
@ -1696,8 +1696,10 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
Ref<Image> icon = memnew(Image(app_icon_png));
|
||||
DisplayServer::get_singleton()->set_icon(icon);
|
||||
if (OS::get_singleton()->get_bundle_icon_path().is_empty()) {
|
||||
Ref<Image> icon = memnew(Image(app_icon_png));
|
||||
DisplayServer::get_singleton()->set_icon(icon);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -2391,7 +2393,7 @@ bool Main::start() {
|
|||
#endif
|
||||
}
|
||||
|
||||
if (!hasicon) {
|
||||
if (!hasicon && OS::get_singleton()->get_bundle_icon_path().is_empty()) {
|
||||
Ref<Image> icon = memnew(Image(app_icon_png));
|
||||
DisplayServer::get_singleton()->set_icon(icon);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue