Skip to content

Commit 15435ce

Browse files
committed
Remove unused argument
1 parent 77e2bbc commit 15435ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SlideshowSettings.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595

9696
function refresh_source()
9797
-- update images
98-
update_image_list(script_path() .. 'images/')
98+
update_image_list()
9999

100100
local source = obs.obs_get_source_by_name(browserSourceName)
101101
if source == nil then
@@ -124,7 +124,7 @@ function script_load(settings)
124124
obs.obs_data_set_default_int(settings, "slideDuration", defaultSlideDuration)
125125
obs.obs_data_set_default_bool(settings, "startWithAutoplay", true)
126126
obs.obs_data_set_default_string(settings, "browserSourceName", "Browser")
127-
update_image_list(script_path() .. 'images/')
127+
update_image_list()
128128

129129
local hotkey_tag = " [Slideshow]"
130130

@@ -252,9 +252,9 @@ function send_hotkey_to_browser(keycode, key_pressed)
252252
end
253253

254254
-- write list of images to js file
255-
function update_image_list(dir)
255+
function update_image_list()
256256
local output = assert(io.open(script_path() .. 'images/images.js', "w"))
257-
local files = assert(io.popen('dir "'..dir..'" /b'))
257+
local files = assert(io.popen('dir "'.. script_path() .. 'images/' ..'" /b'))
258258
output:write('let imageNamesStr=`\n')
259259
local imageCount = 0
260260

0 commit comments

Comments
 (0)