]> git.scottworley.com Git - picsort/commitdiff
Forbid exposure adjustment when not available
authorScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 19:55:31 +0000 (11:55 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 19:55:31 +0000 (11:55 -0800)
picsorter.js

index c39e18143941ebf020ed1225d87fa474d4006a7d..cf2c399f9cb39ae3bbf61e8bec99991fa1bcaa0a 100644 (file)
@@ -91,6 +91,10 @@ function mark_not_deleted() {
 }
 
 function change_exposure(amount) {
 }
 
 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();
   exposure += amount;
   picinfo[files[input_index]].exposure = exposure;
   save_picinfo();