app: layers-text-tool action should only be sensitive when active...
... layer is a text layer. It doesn't make sense to activate the text tool on any other kind of layer.
This commit is contained in:
@ -867,6 +867,7 @@ layers_actions_update (GimpActionGroup *group,
|
|||||||
gimp_action_group_set_action_label (group, action, label)
|
gimp_action_group_set_action_label (group, action, label)
|
||||||
|
|
||||||
SET_VISIBLE ("layers-text-tool", text_layer && !ac);
|
SET_VISIBLE ("layers-text-tool", text_layer && !ac);
|
||||||
|
SET_SENSITIVE ("layers-text-tool", text_layer && !ac);
|
||||||
SET_SENSITIVE ("layers-edit-attributes", layer && !fs && !ac);
|
SET_SENSITIVE ("layers-edit-attributes", layer && !fs && !ac);
|
||||||
|
|
||||||
if (layer && gimp_layer_is_floating_sel (layer))
|
if (layer && gimp_layer_is_floating_sel (layer))
|
||||||
|
|||||||
Reference in New Issue
Block a user