| 1116 | } |
| 1117 | |
| 1118 | void EditorNode::_on_plugin_ready(Object *p_script, const String &p_activate_name) { |
| 1119 | Ref<Script> scr = Object::cast_to<Script>(p_script); |
| 1120 | if (scr.is_null()) { |
| 1121 | return; |
| 1122 | } |
| 1123 | project_settings_editor->update_plugins(); |
| 1124 | project_settings_editor->hide(); |
| 1125 | push_item(scr.operator->()); |
| 1126 | if (p_activate_name.length()) { |
| 1127 | set_addon_plugin_enabled(p_activate_name, true); |
| 1128 | } |
| 1129 | } |
| 1130 | |
| 1131 | void EditorNode::_remove_plugin_from_enabled(const String &p_name) { |
| 1132 | ProjectSettings *ps = ProjectSettings::get_singleton(); |
nothing calls this directly
no test coverage detected