actions: Disable Arbitrary Rotation menus if...

...no image is active.
There are Arbitrary Rotation options under both the Image and Layer
menus. All of those rotation options are disabled without an image open.
To keep consistency, this disables those menu options as well.
The Tools menu Rotation option is left as-is.
This commit is contained in:
Alx Sa 2023-03-07 20:45:48 +00:00
parent 9d73413c3d
commit 66271e1e56

View file

@ -859,6 +859,11 @@ tools_actions_update (GimpActionGroup *group,
gimp_action_group_set_action_sensitive (group, action, (condition) != 0, NULL)
SET_SENSITIVE ("tools-gegl", image);
/* Since these are listed under the Image and Layer menus,
* they are disabled without an image to keep consistency
*/
SET_SENSITIVE ("tools-rotate-arbitrary", image);
SET_SENSITIVE ("tools-rotate-image-arbitrary", image);
#undef SET_SENSITIVE
}