diff options
author | Bert Münnich <be.muennich@googlemail.com> | 2012-05-13 21:40:56 +0200 |
---|---|---|
committer | Bert Münnich <be.muennich@googlemail.com> | 2012-05-13 21:40:56 +0200 |
commit | 4057453d6d48fe3fa070c90449cc7308dfd84559 (patch) | |
tree | 2c1089f0491dfd8fe8006761fe1be0c4706af724 /commands.c | |
parent | b605b98455f2caf2e984764c8102641d868966cf (diff) | |
parent | de4e9fc83ea58afa14a815af78edadc155bb8221 (diff) |
Merge remote-tracking branch 'baskerville/master'
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -94,6 +94,24 @@ bool it_toggle_bar(arg_t a) { return true; } +bool it_refresh_thumbs(arg_t a) { + int i = 0; + if (mode == MODE_THUMB) { + win_set_cursor(&win, CURSOR_WATCH); + while (i < filecnt) { + if (!tns_load(&tns, i, &files[i], true, false)) { + remove_file(i, false); + tns.dirty = true; + if (tns.sel >= tns.cnt) + tns.sel = tns.cnt - 1; + } else { + i++; + } + } + } + return true; +} + bool it_reload_image(arg_t a) { if (mode == MODE_IMAGE) { load_image(fileidx); |