mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
975b243ffd
commit
0bf709fefa
@ -153,7 +153,10 @@ actions.Actions({
|
|||||||
set direction(value){
|
set direction(value){
|
||||||
// repeat last direction...
|
// repeat last direction...
|
||||||
if(value == '!'){
|
if(value == '!'){
|
||||||
this.direction = this._direction_last || 'right'
|
if(this._direction_last == null){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.direction = this._direction_last
|
||||||
|
|
||||||
// force direction change...
|
// force direction change...
|
||||||
} else if(typeof(value) == typeof('str')
|
} else if(typeof(value) == typeof('str')
|
||||||
@ -507,8 +510,15 @@ actions.Actions({
|
|||||||
this.focusImage()
|
this.focusImage()
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
// NOTE: resetting this option will clear the last direction...
|
||||||
toggleShiftsAffectDirection: ['Interface/Shifts affect direction',
|
toggleShiftsAffectDirection: ['Interface/Shifts affect direction',
|
||||||
core.makeConfigToggler('shifts-affect-direction', ['off', 'on'])],
|
core.makeConfigToggler('shifts-affect-direction',
|
||||||
|
['off', 'on'],
|
||||||
|
function(action){
|
||||||
|
if(action == 'on'){
|
||||||
|
delete this._direction_last
|
||||||
|
}
|
||||||
|
})],
|
||||||
|
|
||||||
shiftRibbonUp: ['Ribbon|Edit|Sort/Shift ribbon up',
|
shiftRibbonUp: ['Ribbon|Edit|Sort/Shift ribbon up',
|
||||||
function(target){
|
function(target){
|
||||||
|
|||||||
@ -449,8 +449,8 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
|||||||
function(workspace){
|
function(workspace){
|
||||||
'ribbon-focus-mode' in workspace
|
'ribbon-focus-mode' in workspace
|
||||||
&& this.toggleRibbonFocusMode(workspace['ribbon-focus-mode'])
|
&& this.toggleRibbonFocusMode(workspace['ribbon-focus-mode'])
|
||||||
'shifts-affect-directio' in workspace
|
'shifts-affect-direction' in workspace
|
||||||
&& this.toggleShiftsAffectDirection(workspace['shifts-affect-directio'])
|
&& this.toggleShiftsAffectDirection(workspace['shifts-affect-direction'])
|
||||||
})],
|
})],
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user