Mark most official scripts as compatible with dt2
This commit is contained in:
@@ -31,7 +31,7 @@ local dt = require "darktable"
|
||||
local https = require "ssl.https"
|
||||
local cjson = require "cjson"
|
||||
|
||||
dt.configuration.check_version(...,{2,0,0})
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0})
|
||||
|
||||
-- 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,
|
||||
|
||||
@@ -29,7 +29,7 @@ all tags longer than the given length will be automatically deleted at every res
|
||||
]]
|
||||
|
||||
local dt = require "darktable"
|
||||
dt.configuration.check_version(...,{2,0,0})
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0})
|
||||
|
||||
dt.preferences.register("delete_long_tags", "length", "integer",
|
||||
"maximum length of tags to keep",
|
||||
|
||||
@@ -31,12 +31,12 @@ USAGE
|
||||
|
||||
-- TODO:
|
||||
-- * enable showing of the txt file (plugins/lighttable/draw_custom_metadata) if this script is enabled
|
||||
-- * maybe allow a lua command returning text instead of a command line call ? both ?
|
||||
-- * maybe allow a lua command returning text instead of a command line call? both?
|
||||
-- * make filenames with double quotes (") work
|
||||
|
||||
local dt = require "darktable"
|
||||
require "darktable.debug"
|
||||
dt.configuration.check_version(...,{2,1,0})
|
||||
dt.configuration.check_version(...,{2,1,0},{3,0,0})
|
||||
|
||||
dt.preferences.register("generate_image_txt",
|
||||
"enabled",
|
||||
|
||||
@@ -27,7 +27,7 @@ USAGE
|
||||
|
||||
]]
|
||||
local dt = require "darktable"
|
||||
dt.configuration.check_version(...,{2,0,0})
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0})
|
||||
|
||||
dt.print("hello, world")
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ This plugin will add a widget at the bottom of the left column in lighttable mod
|
||||
|
||||
]]
|
||||
local dt = require "darktable"
|
||||
dt.configuration.check_version(...,{2,0,0})
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0})
|
||||
|
||||
local main_label = dt.new_widget("label"){selectable = true, ellipsize = "middle", halign = "start"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user