mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +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){
|
||||
// repeat last direction...
|
||||
if(value == '!'){
|
||||
this.direction = this._direction_last || 'right'
|
||||
if(this._direction_last == null){
|
||||
return
|
||||
}
|
||||
this.direction = this._direction_last
|
||||
|
||||
// force direction change...
|
||||
} else if(typeof(value) == typeof('str')
|
||||
@ -507,8 +510,15 @@ actions.Actions({
|
||||
this.focusImage()
|
||||
}],
|
||||
|
||||
// NOTE: resetting this option will clear the last 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',
|
||||
function(target){
|
||||
|
||||
@ -449,8 +449,8 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||
function(workspace){
|
||||
'ribbon-focus-mode' in workspace
|
||||
&& this.toggleRibbonFocusMode(workspace['ribbon-focus-mode'])
|
||||
'shifts-affect-directio' in workspace
|
||||
&& this.toggleShiftsAffectDirection(workspace['shifts-affect-directio'])
|
||||
'shifts-affect-direction' in workspace
|
||||
&& this.toggleShiftsAffectDirection(workspace['shifts-affect-direction'])
|
||||
})],
|
||||
],
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user