Skip to content

Commit 4b3b1f7

Browse files
authored
Fix bug when updating exe preference
Move the preference.write() call inside the for loop
1 parent 844e89a commit 4b3b1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/HDRMerge.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ end
153153

154154
local function ExeUpdate(prog_tbl)
155155
dt.preferences.write(mod, 'bin_exists', 'bool', true)
156-
dt.preferences.write('executable_paths', prog.name, 'string', GUI.exes[prog.name].value)
157156
for _,prog in pairs(prog_tbl) do
157+
dt.preferences.write('executable_paths', prog.name, 'string', GUI.exes[prog.name].value)
158158
prog.bin = df.check_if_bin_exists(prog.name)
159159
if not prog.bin then
160160
prog.install_error = true

0 commit comments

Comments
 (0)