actions: Hide Layer Attributes for floating selections

Resolves #13850

While layer-actions.c blocks showing the Layer Attributes
dialogue if the layer is a floating selection, it was still
possible to show it if the preview icon was activated.
This is because that calls the "layers-edit" action, which
bypasses the "layers-edit-attributes" block and shows
the dialogue anyway.
This patch adds a check for floating selections in
layers_edit_attributes_cmd_callback (), and returns if the
layer is a floating selection.
This commit is contained in:
Alx Sa 2025-04-27 16:44:34 +00:00
parent a2aedc789b
commit 8c14e432b7

View file

@ -271,6 +271,9 @@ layers_edit_attributes_cmd_callback (GimpAction *action,
layer = layers->data;
if (gimp_layer_is_floating_sel (layer))
return;
#define EDIT_DIALOG_KEY "gimp-layer-edit-attributes-dialog"
dialog = dialogs_get_dialog (G_OBJECT (layer), EDIT_DIALOG_KEY);