From e2d876dcb273f361eaee2ebf8427f68234f32610 Mon Sep 17 00:00:00 2001 From: wpferguson Date: Thu, 28 Jan 2021 14:42:56 -0500 Subject: [PATCH] Added darktable.gui.libs.metadata_view.destroy_info --- .../lua.api.manual/darktable/darktable.gui.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/content/lua.api.manual/darktable/darktable.gui.md b/content/lua.api.manual/darktable/darktable.gui.md index c686538..0cba301 100644 --- a/content/lua.api.manual/darktable/darktable.gui.md +++ b/content/lua.api.manual/darktable/darktable.gui.md @@ -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 * **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 * **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 The widget allowing modification of metadata fields on the current image