From 66271e1e5679476ee8a67590e699cda20e9c1bca Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Tue, 7 Mar 2023 20:45:48 +0000 Subject: [PATCH] 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. --- app/actions/tools-actions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/actions/tools-actions.c b/app/actions/tools-actions.c index c845a25476..8bf2f97529 100644 --- a/app/actions/tools-actions.c +++ b/app/actions/tools-actions.c @@ -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 }