Fix layer name text input (#2081)

This commit is contained in:
James Lindsay 2024-10-26 21:25:51 +01:00 committed by GitHub
parent ff8fec6eca
commit c27d8dc5dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1631,7 +1631,7 @@ impl NodeGraphMessageHandler {
Separator::new(SeparatorType::Related).widget_holder(),
IconLabel::new("Layer").tooltip("Name of the selected layer").widget_holder(),
Separator::new(SeparatorType::Related).widget_holder(),
TextInput::new(context.document_name)
TextInput::new(context.network_interface.frontend_display_name(&layer, context.selection_network_path))
.on_update(move |text_input| {
NodeGraphMessage::SetDisplayName {
node_id: layer,