Skip to content

Commit b4ee97a

Browse files
committed
got register_lib arguments in the correct order
1 parent 4bdaaaf commit b4ee97a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/rename_images.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ du.check_min_api_version("7.0.0", "rename_images")
4949
local gettext = dt.gettext
5050

5151
-- Tell gettext where to find the .mo file translating messages for a particular domain
52-
gettext.bindtextdomain("rename",dt.configuration.config_dir.."/lua/locale/")
52+
gettext.bindtextdomain("rename_images",dt.configuration.config_dir.."/lua/locale/")
5353

5454
local function _(msgid)
5555
return gettext.dgettext("rename_images", msgid)
@@ -139,8 +139,8 @@ end
139139
local function install_module()
140140
if not rename.module_installed then
141141
dt.register_lib(
142+
MODULE_NAME,
142143
_("rename images"),
143-
("rename_images"),
144144
true,
145145
true,
146146
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER",700}},
@@ -157,11 +157,11 @@ local function install_module()
157157
end
158158

159159
local function destroy()
160-
dt.gui.libs["rename_images"].visible = false
160+
dt.gui.libs[MODULE_NAME].visible = false
161161
end
162162

163163
local function restart()
164-
dt.gui.libs["rename_images"].visible = true
164+
dt.gui.libs[MODULE_NAME].visible = true
165165
end
166166

167167
-- - - - - - - - - - - - - - - - - - - - - - - -

0 commit comments

Comments
 (0)