Skip to content

enable reset in rename_images.lua#636

Open
deekayhd wants to merge 1 commit intodarktable-org:masterfrom
deekayhd:rename_images_reset
Open

enable reset in rename_images.lua#636
deekayhd wants to merge 1 commit intodarktable-org:masterfrom
deekayhd:rename_images_reset

Conversation

@deekayhd
Copy link
Contributor

This PR enables the reset function in rename_images.lua.
Clicking the reset button clears the entry field and the hidden preference.

Closes #635

true,
{[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER",700}},
dt.new_widget("box"){
reset_callback = function (self)
Copy link
Member

@wpferguson wpferguson Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move this into the rename.widgets.pattern widget declaration and instead of calling another function, just include the code there

reset_callback = function(self)
  self.text = ""
end

EDIT: Look at image_stack.lua where I reset a bunch of widgets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rename_images not resettable

2 participants