You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Enable new addon after hiding ProjectSettings
- Enabling newly created addons can show a warning dialog, doing so before hiding the `ProjectSettingsEditor` dialog causes rendering glitches. - Remove unused `PuginConfigDialog` in `EditorNode`. The one actually being used is an instance in `EditorPluginSettings`.
This commit is contained in:
@@ -819,12 +819,12 @@ void EditorNode::_on_plugin_ready(Object *p_script, const String &p_activate_nam
|
|||||||
if (scr.is_null()) {
|
if (scr.is_null()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (p_activate_name.length()) {
|
|
||||||
set_addon_plugin_enabled(p_activate_name, true);
|
|
||||||
}
|
|
||||||
project_settings_editor->update_plugins();
|
project_settings_editor->update_plugins();
|
||||||
project_settings_editor->hide();
|
project_settings_editor->hide();
|
||||||
push_item(scr.operator->());
|
push_item(scr.operator->());
|
||||||
|
if (p_activate_name.length()) {
|
||||||
|
set_addon_plugin_enabled(p_activate_name, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode::_remove_plugin_from_enabled(const String &p_name) {
|
void EditorNode::_remove_plugin_from_enabled(const String &p_name) {
|
||||||
@@ -7337,10 +7337,6 @@ EditorNode::EditorNode() {
|
|||||||
project_menu->add_item(TTR("Customize Engine Build Configuration..."), TOOLS_BUILD_PROFILE_MANAGER);
|
project_menu->add_item(TTR("Customize Engine Build Configuration..."), TOOLS_BUILD_PROFILE_MANAGER);
|
||||||
project_menu->add_separator();
|
project_menu->add_separator();
|
||||||
|
|
||||||
plugin_config_dialog = memnew(PluginConfigDialog);
|
|
||||||
plugin_config_dialog->connect("plugin_ready", callable_mp(this, &EditorNode::_on_plugin_ready));
|
|
||||||
gui_base->add_child(plugin_config_dialog);
|
|
||||||
|
|
||||||
tool_menu = memnew(PopupMenu);
|
tool_menu = memnew(PopupMenu);
|
||||||
tool_menu->set_name("Tools");
|
tool_menu->set_name("Tools");
|
||||||
tool_menu->connect("index_pressed", callable_mp(this, &EditorNode::_tool_menu_option));
|
tool_menu->connect("index_pressed", callable_mp(this, &EditorNode::_tool_menu_option));
|
||||||
|
|||||||
@@ -355,8 +355,6 @@ private:
|
|||||||
|
|
||||||
uint64_t started_timestamp = 0;
|
uint64_t started_timestamp = 0;
|
||||||
|
|
||||||
PluginConfigDialog *plugin_config_dialog = nullptr;
|
|
||||||
|
|
||||||
RichTextLabel *load_errors = nullptr;
|
RichTextLabel *load_errors = nullptr;
|
||||||
AcceptDialog *load_error_dialog = nullptr;
|
AcceptDialog *load_error_dialog = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user