aboutsummaryrefslogtreecommitdiff
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-08-16 11:37:49 +0200
committerBert Münnich <ber.t@posteo.de>2014-08-16 21:48:52 +0200
commit61f61cae5fdf5aa51975bd587497b830684b7867 (patch)
treeda24dcfde194370113d811a1d3e779c11d781b10 /thumbs.c
parent3b8a79fb8bcde81966514d6a8af18f9db015b3df (diff)
Generalized thumbnail loading, allows easier reloading of thumbnails later on
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thumbs.c b/thumbs.c
index f1617fc..c617a45 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -165,7 +165,7 @@ void tns_init(tns_t *tns, int cnt, win_t *win)
tns->thumbs = NULL;
}
tns->cap = cnt;
- tns->cnt = tns->first = tns->sel = 0;
+ tns->cnt = tns->loadnext = tns->first = tns->sel = 0;
tns->win = win;
tns->dirty = false;
@@ -325,6 +325,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
if (!cache_hit)
tns_cache_write(t, true);
+ t->loaded = true;
tns->dirty = true;
return true;
}