minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-01 19:02:28 +03:00
parent aa3c12c883
commit cd7cb020b7
2 changed files with 8 additions and 5 deletions

View File

@ -963,16 +963,18 @@ module.FileSystemWriter = core.ImageGridFeatures.Feature({
// - save as.. (browser) // - save as.. (browser)
// - save if not base path present (browser) // - save if not base path present (browser)
var FileSystemWriterUIActions = actions.Actions({ var FileSystemWriterUIActions = actions.Actions({
// XXX should this ask the user for a path??? // XXX this needs feedback...
// XXX this for some reason works differently than browseSaveIndex(..)
// and saves images-diff instead of images...
saveIndexHere: ['File/Save', saveIndexHere: ['File/Save',
function(){ function(){
if(this.location.path){ if(this.location.path){
this.saveIndex(this.location.path) this.saveIndex(this.location.path)
}
} else {
this.browseSaveIndex()
}
}], }],
// XXX add ability to create dirs... // XXX add ability to create dirs...
// XXX this needs feedback...
browseSaveIndex: ['File/Save index to...', browseSaveIndex: ['File/Save index to...',
makeBrowseProxy('saveIndex', function(){ makeBrowseProxy('saveIndex', function(){
this.location.method = 'loadIndex' })], this.location.method = 'loadIndex' })],

View File

@ -263,7 +263,8 @@ module.GLOBAL_KEYBOARD = {
default: 'slideshowDialog', default: 'slideshowDialog',
// XXX need to make this save to base_path if it exists and // XXX need to make this save to base_path if it exists and
// ask the user if it does not... now it always asks. // ask the user if it does not... now it always asks.
ctrl: 'browseSaveIndex', ctrl: 'saveIndexHere',
'ctrl+shift': 'browseSaveIndex',
}, },
// XXX still experimental... // XXX still experimental...