From fec19f95273f8b30400d09c26871b8aabd5f7626 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sat, 25 Dec 2021 15:36:50 -0500 Subject: [PATCH] added darktable.gui.libs.image.action_set_sensitive --- .../lua.api.manual/darktable/gui/libs/image.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/content/lua.api.manual/darktable/gui/libs/image.md b/content/lua.api.manual/darktable/gui/libs/image.md index 47bf3c5..9a7b19d 100644 --- a/content/lua.api.manual/darktable/gui/libs/image.md +++ b/content/lua.api.manual/darktable/gui/libs/image.md @@ -48,7 +48,7 @@ The function to call when the button is pressed ``` function( - name : string, + name : string ) ``` @@ -56,3 +56,17 @@ Destroy an action created with register_action * **name** - _string_ - The name of the action to destroy +## darktable.gui.libs.image.action_set_sensitive + +``` +function( + name : string, + sensitive : boolean +) +``` + +Set the sensitivity of a button created by darktable.gui.libs.image.register_action + +* **name** - _string_ - The name of the action to destroy +* **sensitive** - _boolean_ - True to set the button sensitive, false to set it insensitive +