summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlof-Joachim Frahm <olof@macrolet.net>2018-01-03 00:51:38 +0100
committerOlof-Joachim Frahm <olof@macrolet.net>2018-01-03 00:51:38 +0100
commitd1cffb065667e9d96fb6a03b3fcda5a9543f8d0c (patch)
tree4bef229846a7c827214268d593af2747617c75e4
parent0911570bda04e4da541ef095bcdc8cc5cfd57412 (diff)
Add files from file list file on reload.
Fixes issue 325.
-rw-r--r--src/slideshow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index db389d5..4e58596 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -110,6 +110,10 @@ void cb_reload_timer(void *data)
add_file_to_filelist_recursively(l->data, FILELIST_FIRST);
else if (!opt.filelistfile && !opt.bgmode)
add_file_to_filelist_recursively(".", FILELIST_FIRST);
+
+ if (opt.filelistfile) {
+ filelist = gib_list_cat(filelist, feh_read_filelist(opt.filelistfile));
+ }
if (!(filelist_len = gib_list_length(filelist))) {
eprintf("No files found to reload.");