diff --git a/contrib/AutoGrouper.lua b/contrib/AutoGrouper.lua index 58a8c1b8..79ded8cf 100644 --- a/contrib/AutoGrouper.lua +++ b/contrib/AutoGrouper.lua @@ -50,6 +50,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local gettext = dt.gettext -- Tell gettext where to find the .mo file translating messages for a particular domain @@ -215,4 +216,4 @@ script_data.destroy_method = "hide" script_data.restart = restart script_data.show = restart -return script_data +return script_data diff --git a/contrib/CollectHelper.lua b/contrib/CollectHelper.lua index 94c5f77a..7f609350 100644 --- a/contrib/CollectHelper.lua +++ b/contrib/CollectHelper.lua @@ -63,6 +63,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local function _(msgid) return gettext.dgettext("CollectHelper", msgid) diff --git a/contrib/HDRMerge.lua b/contrib/HDRMerge.lua index bf922989..3e7e29a5 100644 --- a/contrib/HDRMerge.lua +++ b/contrib/HDRMerge.lua @@ -58,6 +58,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local mod = 'module_HDRMerge' diff --git a/contrib/LabelsToTags.lua b/contrib/LabelsToTags.lua index f5d87ba2..a89b05d2 100644 --- a/contrib/LabelsToTags.lua +++ b/contrib/LabelsToTags.lua @@ -59,6 +59,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Lua 5.3 no longer has "unpack" but "table.unpack" unpack = unpack or table.unpack diff --git a/contrib/OpenInExplorer.lua b/contrib/OpenInExplorer.lua index a7761989..9a8cd650 100644 --- a/contrib/OpenInExplorer.lua +++ b/contrib/OpenInExplorer.lua @@ -63,6 +63,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("OpenInExplorer",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/RL_out_sharp.lua b/contrib/RL_out_sharp.lua index 40cfb204..2c854e48 100644 --- a/contrib/RL_out_sharp.lua +++ b/contrib/RL_out_sharp.lua @@ -72,6 +72,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- OS compatibility local PS = dt.configuration.running_os == "windows" and "\\" or "/" diff --git a/contrib/autostyle.lua b/contrib/autostyle.lua index 64de2a80..53fc0ab5 100644 --- a/contrib/autostyle.lua +++ b/contrib/autostyle.lua @@ -49,6 +49,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- run command and retrieve stdout local function get_stdout(cmd) diff --git a/contrib/change_group_leader.lua b/contrib/change_group_leader.lua index 07ce8119..c7fe5c0f 100644 --- a/contrib/change_group_leader.lua +++ b/contrib/change_group_leader.lua @@ -49,6 +49,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain(MODULE, dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/clear_GPS.lua b/contrib/clear_GPS.lua index 518e0372..da4668c1 100644 --- a/contrib/clear_GPS.lua +++ b/contrib/clear_GPS.lua @@ -46,6 +46,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local gettext = dt.gettext diff --git a/contrib/copy_attach_detach_tags.lua b/contrib/copy_attach_detach_tags.lua index dda92aed..05f6f1f4 100644 --- a/contrib/copy_attach_detach_tags.lua +++ b/contrib/copy_attach_detach_tags.lua @@ -51,6 +51,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("copy_attach_detach_tags",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/cr2hdr.lua b/contrib/cr2hdr.lua index 25d07a2f..f4a40c9d 100644 --- a/contrib/cr2hdr.lua +++ b/contrib/cr2hdr.lua @@ -44,6 +44,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local queue = {} local processed_files = {} diff --git a/contrib/enfuseAdvanced.lua b/contrib/enfuseAdvanced.lua index 3103821c..76ffd01e 100644 --- a/contrib/enfuseAdvanced.lua +++ b/contrib/enfuseAdvanced.lua @@ -74,6 +74,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain local gettext = dt.gettext diff --git a/contrib/exportLUT.lua b/contrib/exportLUT.lua index 3d023901..fe11960e 100644 --- a/contrib/exportLUT.lua +++ b/contrib/exportLUT.lua @@ -40,6 +40,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local gettext = dt.gettext diff --git a/contrib/ext_editor.lua b/contrib/ext_editor.lua index 10d1ca6c..827d5270 100644 --- a/contrib/ext_editor.lua +++ b/contrib/ext_editor.lua @@ -82,6 +82,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- OS compatibility local PS = dt.configuration.running_os == "windows" and "\\" or "/" diff --git a/contrib/face_recognition.lua b/contrib/face_recognition.lua index 68a497cc..5bd7048e 100644 --- a/contrib/face_recognition.lua +++ b/contrib/face_recognition.lua @@ -61,6 +61,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- namespace diff --git a/contrib/fujifilm_dynamic_range.lua b/contrib/fujifilm_dynamic_range.lua index 68694ea3..a6d80875 100644 --- a/contrib/fujifilm_dynamic_range.lua +++ b/contrib/fujifilm_dynamic_range.lua @@ -70,6 +70,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local function detect_dynamic_range(event, image) if image.exif_maker ~= "FUJIFILM" then diff --git a/contrib/fujifilm_ratings.lua b/contrib/fujifilm_ratings.lua index 18dba2bc..c6b8738c 100644 --- a/contrib/fujifilm_ratings.lua +++ b/contrib/fujifilm_ratings.lua @@ -37,6 +37,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them gettext.bindtextdomain("fujifilm_ratings", dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/geoJSON_export.lua b/contrib/geoJSON_export.lua index cc3d9560..cd748fee 100644 --- a/contrib/geoJSON_export.lua +++ b/contrib/geoJSON_export.lua @@ -46,6 +46,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("geoJSON_export",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/geoToolbox.lua b/contrib/geoToolbox.lua index db99d26f..30f90406 100644 --- a/contrib/geoToolbox.lua +++ b/contrib/geoToolbox.lua @@ -39,6 +39,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("geoToolbox",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/gimp.lua b/contrib/gimp.lua index d2809222..0b235f92 100644 --- a/contrib/gimp.lua +++ b/contrib/gimp.lua @@ -81,6 +81,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("gimp",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/gpx_export.lua b/contrib/gpx_export.lua index 12c45323..c25028e2 100644 --- a/contrib/gpx_export.lua +++ b/contrib/gpx_export.lua @@ -36,6 +36,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("gpx_export",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/hugin.lua b/contrib/hugin.lua index ed040f1e..77ad7cb8 100644 --- a/contrib/hugin.lua +++ b/contrib/hugin.lua @@ -63,6 +63,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/image_stack.lua b/contrib/image_stack.lua index 8560c131..b78b96c5 100644 --- a/contrib/image_stack.lua +++ b/contrib/image_stack.lua @@ -80,6 +80,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("image_stack",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/image_time.lua b/contrib/image_time.lua index 78b6f42e..17d54819 100644 --- a/contrib/image_time.lua +++ b/contrib/image_time.lua @@ -122,6 +122,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain diff --git a/contrib/kml_export.lua b/contrib/kml_export.lua index 8451d72c..f772fb76 100644 --- a/contrib/kml_export.lua +++ b/contrib/kml_export.lua @@ -52,6 +52,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("kml_export",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/pdf_slideshow.lua b/contrib/pdf_slideshow.lua index f1824856..11948845 100644 --- a/contrib/pdf_slideshow.lua +++ b/contrib/pdf_slideshow.lua @@ -65,6 +65,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them dt.preferences.register ("pdf_slideshow","open with","string", diff --git a/contrib/photils.lua b/contrib/photils.lua index 3be939e2..b5e99bd8 100644 --- a/contrib/photils.lua +++ b/contrib/photils.lua @@ -51,6 +51,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local PS = dt.configuration.running_os == "windows" and "\\" or "/" diff --git a/contrib/rate_group.lua b/contrib/rate_group.lua index 4f2fa608..9a790f81 100644 --- a/contrib/rate_group.lua +++ b/contrib/rate_group.lua @@ -51,6 +51,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local function apply_rating(rating) local images = dt.gui.action_images diff --git a/contrib/rename-tags.lua b/contrib/rename-tags.lua index 74d9bfed..2213b923 100644 --- a/contrib/rename-tags.lua +++ b/contrib/rename-tags.lua @@ -43,6 +43,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local rt = {} rt.module_installed = false diff --git a/contrib/rename_images.lua b/contrib/rename_images.lua index 584ba31a..e8e013db 100644 --- a/contrib/rename_images.lua +++ b/contrib/rename_images.lua @@ -75,6 +75,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/select_untagged.lua b/contrib/select_untagged.lua index 8740ee2f..d15941b2 100644 --- a/contrib/select_untagged.lua +++ b/contrib/select_untagged.lua @@ -31,6 +31,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("select_untagged",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/slideshowMusic.lua b/contrib/slideshowMusic.lua index 67c17363..cf62aa69 100644 --- a/contrib/slideshowMusic.lua +++ b/contrib/slideshowMusic.lua @@ -38,6 +38,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("slideshowMusic",dt.configuration.config_dir.."/lua/locale/") diff --git a/contrib/transfer_hierarchy.lua b/contrib/transfer_hierarchy.lua index 840deeca..10c5f0dc 100755 --- a/contrib/transfer_hierarchy.lua +++ b/contrib/transfer_hierarchy.lua @@ -87,6 +87,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local MKDIR_COMMAND = darktable.configuration.running_os == "windows" and "mkdir " or "mkdir -p " local PATH_SEPARATOR = darktable.configuration.running_os == "windows" and "\\\\" or "/" diff --git a/contrib/video_ffmpeg.lua b/contrib/video_ffmpeg.lua index d670a517..165b5771 100644 --- a/contrib/video_ffmpeg.lua +++ b/contrib/video_ffmpeg.lua @@ -48,6 +48,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local MODULE_NAME = "video_ffmpeg" diff --git a/examples/moduleExample.lua b/examples/moduleExample.lua index b68161e8..bf5a3253 100644 --- a/examples/moduleExample.lua +++ b/examples/moduleExample.lua @@ -42,6 +42,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet, otherwise leave as nil script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- translation diff --git a/official/check_for_updates.lua b/official/check_for_updates.lua index 5f1b4848..b8894df8 100644 --- a/official/check_for_updates.lua +++ b/official/check_for_updates.lua @@ -41,6 +41,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- compare two version strings of the form "major.minor.patch" -- returns -1, 0, 1 if the first version is smaller, equal, greater than the second version, diff --git a/official/copy_paste_metadata.lua b/official/copy_paste_metadata.lua index ec4e7c85..ffd69c87 100644 --- a/official/copy_paste_metadata.lua +++ b/official/copy_paste_metadata.lua @@ -38,6 +38,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- set this to "false" if you don't want to overwrite metadata fields -- (title, description, creator, publisher and rights) that are already set diff --git a/official/delete_long_tags.lua b/official/delete_long_tags.lua index a5f54553..31ae7994 100644 --- a/official/delete_long_tags.lua +++ b/official/delete_long_tags.lua @@ -40,6 +40,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them dt.preferences.register("delete_long_tags", "length", "integer", "maximum length of tags to keep", diff --git a/official/delete_unused_tags.lua b/official/delete_unused_tags.lua index fcaf03d6..0dfab017 100644 --- a/official/delete_unused_tags.lua +++ b/official/delete_unused_tags.lua @@ -44,6 +44,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- deleting while iterating the tags list seems to break the iterator! local unused_tags = {} diff --git a/official/enfuse.lua b/official/enfuse.lua index 212f0e3f..35327cfd 100644 --- a/official/enfuse.lua +++ b/official/enfuse.lua @@ -50,6 +50,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them -- Tell gettext where to find the .mo file translating messages for a particular domain gettext.bindtextdomain("enfuse",dt.configuration.config_dir..PS .. "lua" .. PS .. "locale" .. PS) diff --git a/official/generate_image_txt.lua b/official/generate_image_txt.lua index 11eceb0b..73b50635 100644 --- a/official/generate_image_txt.lua +++ b/official/generate_image_txt.lua @@ -47,6 +47,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them dt.preferences.register("generate_image_txt", "enabled", diff --git a/official/image_path_in_ui.lua b/official/image_path_in_ui.lua index e256cf41..e81a6cb8 100644 --- a/official/image_path_in_ui.lua +++ b/official/image_path_in_ui.lua @@ -40,6 +40,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local ipiu = {} ipiu.module_installed = false diff --git a/official/save_selection.lua b/official/save_selection.lua index d05a760a..b06f933a 100644 --- a/official/save_selection.lua +++ b/official/save_selection.lua @@ -45,6 +45,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local buffer_count = 5 diff --git a/official/selection_to_pdf.lua b/official/selection_to_pdf.lua index b2b688e5..638ae24f 100644 --- a/official/selection_to_pdf.lua +++ b/official/selection_to_pdf.lua @@ -45,6 +45,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them dt.preferences.register ("selection_to_pdf","Open with","string", diff --git a/tools/executable_manager.lua b/tools/executable_manager.lua index 68752880..87e752aa 100644 --- a/tools/executable_manager.lua +++ b/tools/executable_manager.lua @@ -41,6 +41,7 @@ local script_data = {} script_data.destroy = nil -- function to destory the script script_data.destroy_method = nil -- set to hide for libs since we can't destroy them commpletely yet script_data.restart = nil -- how to restart the (lib) script after it's been hidden - i.e. make it visible again +script_data.show = nil -- only required for libs since the destroy_method only hides them local PS = dt.configuration.running_os == "windows" and "\\" or "/"