From: Scott Worley Date: Fri, 28 Feb 2014 19:55:31 +0000 (-0800) Subject: Forbid exposure adjustment when not available X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/b11d9c69e1dd6e101895d14c8805f664a38e7ca9 Forbid exposure adjustment when not available --- diff --git a/picsorter.js b/picsorter.js index c39e181..cf2c399 100644 --- a/picsorter.js +++ b/picsorter.js @@ -91,6 +91,10 @@ function mark_not_deleted() { } function change_exposure(amount) { + if (!endsWith(files[input_index], ".NEF")) { + say("Exposure adjustment not available"); + return; + } exposure += amount; picinfo[files[input_index]].exposure = exposure; save_picinfo();