From cd7cb020b720954d10f77b7d839e85acd8271f13 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 1 Apr 2016 19:02:28 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 10 ++++++---- ui (gen4)/ui.js | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index 160f9d27..4a89384d 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -963,16 +963,18 @@ module.FileSystemWriter = core.ImageGridFeatures.Feature({ // - save as.. (browser) // - save if not base path present (browser) var FileSystemWriterUIActions = actions.Actions({ - // XXX should this ask the user for a path??? - // XXX this for some reason works differently than browseSaveIndex(..) - // and saves images-diff instead of images... + // XXX this needs feedback... saveIndexHere: ['File/Save', function(){ if(this.location.path){ this.saveIndex(this.location.path) - } + + } else { + this.browseSaveIndex() + } }], // XXX add ability to create dirs... + // XXX this needs feedback... browseSaveIndex: ['File/Save index to...', makeBrowseProxy('saveIndex', function(){ this.location.method = 'loadIndex' })], diff --git a/ui (gen4)/ui.js b/ui (gen4)/ui.js index dfa1b575..12598446 100755 --- a/ui (gen4)/ui.js +++ b/ui (gen4)/ui.js @@ -263,7 +263,8 @@ module.GLOBAL_KEYBOARD = { default: 'slideshowDialog', // XXX need to make this save to base_path if it exists and // ask the user if it does not... now it always asks. - ctrl: 'browseSaveIndex', + ctrl: 'saveIndexHere', + 'ctrl+shift': 'browseSaveIndex', }, // XXX still experimental...