mirror of
https://github.com/godotengine/godot
synced 2024-09-15 21:20:08 +00:00
Fix icon loading error a boot
This commit is contained in:
parent
81dde2687f
commit
45ddbbd738
|
@ -1464,6 +1464,7 @@ bool Main::start() {
|
|||
String iconpath = GLOBAL_DEF("application/config/icon", "Variant()");
|
||||
if (iconpath != "") {
|
||||
Ref<Image> icon;
|
||||
icon.instance();
|
||||
if (icon->load(iconpath) == OK)
|
||||
OS::get_singleton()->set_icon(icon);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue