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:
Jehan 2017-05-12 23:58:38 +02:00
parent 99ab780d9f
commit 10099bdaf7
1 changed files with 1 additions and 0 deletions

View File

@ -867,6 +867,7 @@ layers_actions_update (GimpActionGroup *group,
gimp_action_group_set_action_label (group, action, label)
SET_VISIBLE ("layers-text-tool", text_layer && !ac);
SET_SENSITIVE ("layers-text-tool", text_layer && !ac);
SET_SENSITIVE ("layers-edit-attributes", layer && !fs && !ac);
if (layer && gimp_layer_is_floating_sel (layer))