mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
tweaking and minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
77f830d5ee
commit
f281b3d09d
@ -399,6 +399,7 @@ var WorkspaceActions = actions.Actions({
|
||||
function(){ return Object.keys(this.config['workspaces']) },
|
||||
function(state){ this.loadWorkspace(state) })],
|
||||
|
||||
// XXX should we keep the stack unique???
|
||||
pushWorkspace: ['- Workspace/',
|
||||
function(name){
|
||||
name = name || this.workspace
|
||||
@ -406,6 +407,10 @@ var WorkspaceActions = actions.Actions({
|
||||
|
||||
this.saveWorkspace()
|
||||
|
||||
if(stack.slice(-1)[0] == name){
|
||||
return
|
||||
}
|
||||
|
||||
this.workspace != name && this.loadWorkspace(name)
|
||||
stack.push(name)
|
||||
}],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user