1
0
Fork 0

Disable disconnect button for inherited signals

This commit is contained in:
Saracen 2023-10-05 18:51:08 +01:00
parent 0ca8542329
commit 054934fde3
1 changed files with 3 additions and 1 deletions

View File

@ -1026,7 +1026,9 @@ void ConnectionsDock::_tree_item_selected() {
} else if (item && _get_item_type(*item) == TREE_ITEM_TYPE_CONNECTION) {
connect_button->set_text(TTR("Disconnect"));
connect_button->set_icon(get_editor_theme_icon(SNAME("Unlinked")));
connect_button->set_disabled(false);
Object::Connection connection = item->get_metadata(0);
connect_button->set_disabled(_is_connection_inherited(connection));
} else {
connect_button->set_text(TTR("Connect..."));
connect_button->set_icon(get_editor_theme_icon(SNAME("Instance")));