From b11d9c69e1dd6e101895d14c8805f664a38e7ca9 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 28 Feb 2014 11:55:31 -0800 Subject: [PATCH] Forbid exposure adjustment when not available --- picsorter.js | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.44.1