mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aa3c12c883
commit
cd7cb020b7
@ -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' })],
|
||||||
|
|||||||
@ -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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user