summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-09-25 20:57:24 +0200
committerBert Münnich <ber.t@posteo.de>2014-09-26 10:31:03 +0200
commiteaa269b6cb486f83229cb0d3dc5f7e03d1c485bb (patch)
tree747866d0326009a8e2ab52467d69dc1af101eb06 /commands.c
parent52e56c892460e7d1f63ca557b705812f08d6d20c (diff)
downloadnsxiv-eaa269b6cb486f83229cb0d3dc5f7e03d1c485bb.tar.zst
Revised thumbnail loading...
- Only load the thumbnails that are currently visible in the window - Unload thumbnails that are leaving the visible area - Much less memory needed, but scrolling is now slower - This also unintentionally fixes issue #86
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index db73524..6761946 100644
--- a/commands.c
+++ b/commands.c
@@ -470,7 +470,8 @@ bool ct_reload_all(arg_t a)
{
tns_free(&tns);
tns_init(&tns, files, filecnt, &fileidx, &win);
- return false;
+ tns.dirty = true;
+ return true;
}