You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Fix icon loading error a boot
This commit is contained in:
@@ -1464,6 +1464,7 @@ bool Main::start() {
|
|||||||
String iconpath = GLOBAL_DEF("application/config/icon", "Variant()");
|
String iconpath = GLOBAL_DEF("application/config/icon", "Variant()");
|
||||||
if (iconpath != "") {
|
if (iconpath != "") {
|
||||||
Ref<Image> icon;
|
Ref<Image> icon;
|
||||||
|
icon.instance();
|
||||||
if (icon->load(iconpath) == OK)
|
if (icon->load(iconpath) == OK)
|
||||||
OS::get_singleton()->set_icon(icon);
|
OS::get_singleton()->set_icon(icon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user