Skip to content

Fix script data show #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion contrib/AutoGrouper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -215,4 +216,4 @@ script_data.destroy_method = "hide"
script_data.restart = restart
script_data.show = restart

return script_data
return script_data
1 change: 1 addition & 0 deletions contrib/CollectHelper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions contrib/HDRMerge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions contrib/LabelsToTags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/OpenInExplorer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/RL_out_sharp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/"
Expand Down
1 change: 1 addition & 0 deletions contrib/autostyle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions contrib/change_group_leader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/clear_GPS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions contrib/copy_attach_detach_tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/cr2hdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
1 change: 1 addition & 0 deletions contrib/enfuseAdvanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/exportLUT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions contrib/ext_editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/"
Expand Down
1 change: 1 addition & 0 deletions contrib/face_recognition.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions contrib/fujifilm_dynamic_range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/fujifilm_ratings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")

Expand Down
1 change: 1 addition & 0 deletions contrib/geoJSON_export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/geoToolbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/gimp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
2 changes: 2 additions & 0 deletions contrib/gpx_export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down Expand Up @@ -203,5 +204,6 @@ end
script_data.destroy = destroy
script_data.restart = restart
script_data.destroy_method = "hide"
script_data.show = restart

return script_data
1 change: 1 addition & 0 deletions contrib/hugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/image_stack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/image_time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/kml_export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/pdf_slideshow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions contrib/photils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/"
Expand Down
1 change: 1 addition & 0 deletions contrib/rate_group.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/rename-tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions contrib/rename_images.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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


-- - - - - - - - - - - - - - - - - - - - - - - -
Expand Down
1 change: 1 addition & 0 deletions contrib/select_untagged.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/slideshowMusic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down
1 change: 1 addition & 0 deletions contrib/transfer_hierarchy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/"
Expand Down
1 change: 1 addition & 0 deletions contrib/video_ffmpeg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions examples/moduleExample.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions official/check_for_updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions official/copy_paste_metadata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading