Set icon_max_width in the ConnectionsDock tree

This commit is contained in:
Raul Santos 2023-10-16 17:45:26 +02:00
parent 1ab77f410e
commit 38f1df15f0
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4
1 changed files with 2 additions and 0 deletions

View File

@ -1279,6 +1279,8 @@ void ConnectionsDock::_notification(int p_what) {
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_EDIT), get_editor_theme_icon(SNAME("Edit")));
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_GO_TO_METHOD), get_editor_theme_icon(SNAME("ArrowRight")));
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_DISCONNECT), get_editor_theme_icon(SNAME("Unlinked")));
tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
} break;
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {