Fix bug when updating exe preference

Move the preference.write() call inside the for loop
This commit is contained in:
BzKevin
2019-03-12 12:42:37 -04:00
committed by GitHub
parent 844e89a652
commit 4b3b1f7786

View File

@@ -153,8 +153,8 @@ end
local function ExeUpdate(prog_tbl)
dt.preferences.write(mod, 'bin_exists', 'bool', true)
dt.preferences.write('executable_paths', prog.name, 'string', GUI.exes[prog.name].value)
for _,prog in pairs(prog_tbl) do
dt.preferences.write('executable_paths', prog.name, 'string', GUI.exes[prog.name].value)
prog.bin = df.check_if_bin_exists(prog.name)
if not prog.bin then
prog.install_error = true