Added darktable.gui.libs.metadata_view.destroy_info

This commit is contained in:
wpferguson 2021-01-28 14:42:56 -05:00
parent 414b6143e0
commit e2d876dcb2

View file

@ -419,7 +419,7 @@ function(
) )
``` ```
Register a function providing extra info to display in the widget Register a field in the image information module with a callback function to update the field
* **name** - _string_ - The name displayed for the new information * **name** - _string_ - The name displayed for the new information
* **callback** - _function_ - The function providing the info * **callback** - _function_ - The function providing the info
@ -435,6 +435,20 @@ function(
* **image** - _[types.dt_lua_image_t](../../types/dt_lua_image_t)_ - The image to analyze * **image** - _[types.dt_lua_image_t](../../types/dt_lua_image_t)_ - The image to analyze
* **return** - _string_ - The extra information to display * **return** - _string_ - The extra information to display
### darktable.gui.libs.metadata_view.destroy_info
**lua API 6.2.0**
```
function(
name : string
)
```
Remove the named field from the image information module and it's associated callback
* **name** - _string_ - The name of the field, created by [darktable.gui.libs.metadata_view.register_info](#darktable.gui.libs.metadata_view.register_info), to remove
## darktable.gui.libs.metadata ## darktable.gui.libs.metadata
The widget allowing modification of metadata fields on the current image The widget allowing modification of metadata fields on the current image