Skip to content

Commit d88af9f

Browse files
authored
Minor tweaks to last commit
1 parent 7a3a9ba commit d88af9f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

contrib/HDRMerge.lua

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ local function PreCall(prog_tbl) --looks to see if this is the first call, if so
144144
prog.first_run = false
145145
end
146146
end
147-
if not dt.preferences.read(mod, 'bin_exists', 'bool') then GUI.stack.active = 2 end
147+
if not dt.preferences.read(mod, 'bin_exists', 'bool') then
148+
GUI.stack.active = 2
149+
dt.print('please update you binary locatoin')
150+
end
148151
end
149152

150153
local function ExeUpdate(prog_tbl)
@@ -159,7 +162,12 @@ local function ExeUpdate(prog_tbl)
159162
end
160163
prog.first_run = false
161164
end
162-
if dt.preferences.read(mod, 'bin_exists', 'bool') then GUI.stack.active = 1 end
165+
if dt.preferences.read(mod, 'bin_exists', 'bool') then
166+
GUI.stack.active = 1
167+
dt.print('update successful')
168+
else
169+
dt.print('update unsuccessful, please try again')
170+
end
163171
end
164172

165173
local function UpdateActivePreference() --sliders & entry boxes do not have a click/changed callback, so their values must be saved to the active preference
@@ -385,11 +393,12 @@ GUI.exes = dt.new_widget('box'){
385393
GUI.exe_update
386394
}
387395
GUI.stack = dt.new_widget('stack'){
388-
active = 1,
389396
GUI.options,
390397
GUI.exes
391398
}
392-
if not dt.preferences.read(mod, 'bin_exists', 'bool') then
399+
if dt.preferences.read(mod, 'bin_exists', 'bool') then
400+
GUI.stack.active = 1
401+
else
393402
GUI.stack.active = 2
394403
end
395404

0 commit comments

Comments
 (0)