Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-26 14:34:12 +03:00
parent 051cba3082
commit 975b243ffd

View File

@ -436,16 +436,21 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
core.makeWorkspaceConfigWriter( core.makeWorkspaceConfigWriter(
function(){ function(){
return Object.keys(this.config['single-image-config-defaults'] || {}) })], return Object.keys(this.config['single-image-config-defaults'] || {}) })],
// XXX not sure if manual calling of togglers is the right way
// to go here + it's redundant...
// ...the reasoning is that togglers can be bound to, so we
// need to call the bound code...
['loadWorkspace', ['loadWorkspace',
core.makeWorkspaceConfigLoader( core.makeWorkspaceConfigLoader(
function(){ function(){
return Object.keys(this.config['single-image-config-defaults'] || {}) }, return Object.keys(this.config['single-image-config-defaults'] || {}) },
// NOTE: considering that 'ribbon-focus-mode' is handled // NOTE: options toggled by togglers are triggered here...
// by a toggler that can have things bound to it, // XXX do not like this -- manual...
// active is the way to go here...
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
&& this.toggleShiftsAffectDirection(workspace['shifts-affect-directio'])
})], })],
], ],
}) })