From 1d7849efc1fe85d20b8aa4916e75cb3eb658dba9 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 19 Aug 2011 13:26:58 +0200 Subject: Added force parameter to tns_load() to disregard cache --- events.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'events.c') diff --git a/events.c b/events.c index a356b2f..2862d23 100644 --- a/events.c +++ b/events.c @@ -163,7 +163,7 @@ void run() { gettimeofday(&t0, 0); while (tns.cnt < filecnt && !XPending(win.env.dpy)) { - if (tns_load(&tns, tns.cnt, &files[tns.cnt], 0)) + if (tns_load(&tns, tns.cnt, &files[tns.cnt], False, False)) tns.cnt++; else remove_file(tns.cnt, 0); @@ -279,7 +279,7 @@ int it_toggle_fullscreen(arg_t a) { int it_reload_image(arg_t a) { if (mode == MODE_IMAGE) { load_image(fileidx); - } else if (!tns_load(&tns, tns.sel, &files[tns.sel], 0)) { + } else if (!tns_load(&tns, tns.sel, &files[tns.sel], True, False)) { remove_file(tns.sel, 0); tns.dirty = 1; if (tns.sel >= tns.cnt) @@ -578,11 +578,11 @@ int it_shell_cmd(arg_t a) { if (mode == MODE_IMAGE) { if (fileidx < tns.cnt) - tns_load(&tns, fileidx, &files[fileidx], 1); + tns_load(&tns, fileidx, &files[fileidx], False, True); img_close(&img, 1); load_image(fileidx); } else { - if (!tns_load(&tns, tns.sel, &files[tns.sel], 0)) { + if (!tns_load(&tns, tns.sel, &files[tns.sel], True, False)) { remove_file(tns.sel, 0); tns.dirty = 1; if (tns.sel >= tns.cnt) -- cgit v1.2.3-54-g00ecf