mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix crash on asset lib install
This is not the perfect solution, but fixes the crash and avoid a dependency on EditorNode.
This commit is contained in:
parent
6377969000
commit
1a1b62748a
3 changed files with 8 additions and 3 deletions
|
|
@ -317,9 +317,11 @@ void EditorAssetInstaller::ok_pressed() {
|
|||
}
|
||||
msg+=failed_files[i];
|
||||
}
|
||||
EditorNode::get_singleton()->show_warning(msg);
|
||||
if (EditorNode::get_singleton() != NULL)
|
||||
EditorNode::get_singleton()->show_warning(msg);
|
||||
} else {
|
||||
EditorNode::get_singleton()->show_warning("Package Installed Successfully!","Success!");
|
||||
if (EditorNode::get_singleton() != NULL)
|
||||
EditorNode::get_singleton()->show_warning("Package Installed Successfully!","Success!");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue