added darktable.gui.libs.image.action_set_sensitive

This commit is contained in:
Bill Ferguson 2021-12-25 15:36:50 -05:00
parent cfc239ebed
commit fec19f9527

View file

@ -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