Skip to content

Commit 9088bc9

Browse files
committed
tools/script_manager - make the constants <const> to ensure they
stay that way
1 parent bf138ab commit 9088bc9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tools/script_manager.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,27 +75,27 @@ du.check_min_api_version("9.3.0", "script_manager")
7575
-- - - - - - - - - - - - - - - - - - - - - - - -
7676

7777
-- path separator
78-
local PS = dt.configuration.running_os == "windows" and "\\" or "/"
78+
local PS <const> = dt.configuration.running_os == "windows" and "\\" or "/"
7979

8080
-- command separator
81-
local CS = dt.configuration.running_os == "windows" and "&" or ";"
81+
local CS <const> = dt.configuration.running_os == "windows" and "&" or ";"
8282

83-
local MODULE = "script_manager"
83+
local MODULE <const> = "script_manager"
8484

85-
local MIN_BUTTONS_PER_PAGE = 5
86-
local MAX_BUTTONS_PER_PAGE = 20
87-
local DEFAULT_BUTTONS_PER_PAGE = 10
85+
local MIN_BUTTONS_PER_PAGE <const> = 5
86+
local MAX_BUTTONS_PER_PAGE <const> = 20
87+
local DEFAULT_BUTTONS_PER_PAGE <const> = 10
8888

89-
local DEFAULT_LOG_LEVEL = log.error
89+
local DEFAULT_LOG_LEVEL <const> = log.error
9090

91-
local LUA_DIR = dt.configuration.config_dir .. PS .. "lua"
92-
local LUA_SCRIPT_REPO = "https://github.com/darktable-org/lua-scripts.git"
91+
local LUA_DIR <const> = dt.configuration.config_dir .. PS .. "lua"
92+
local LUA_SCRIPT_REPO <const> = "https://github.com/darktable-org/lua-scripts.git"
9393

94-
local LUA_API_VER = "API-" .. dt.configuration.api_version_string
94+
local LUA_API_VER <const> = "API-" .. dt.configuration.api_version_string
9595

9696
-- local POWER_ICON = dt.configuration.config_dir .. "/lua/data/data/icons/power.png"
97-
local POWER_ICON = dt.configuration.config_dir .. "/lua/data/icons/path20.png"
98-
local BLANK_ICON = dt.configuration.config_dir .. "/lua/data/icons/blank20.png"
97+
local POWER_ICON <const> = dt.configuration.config_dir .. "/lua/data/icons/path20.png"
98+
local BLANK_ICON <const> = dt.configuration.config_dir .. "/lua/data/icons/blank20.png"
9999

100100
-- - - - - - - - - - - - - - - - - - - - - - - -
101101
-- P R E F E R E N C E S

0 commit comments

Comments
 (0)