mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									051cba3082
								
							
						
					
					
						commit
						975b243ffd
					
				| @ -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']) | ||||||
| 				})], | 				})], | ||||||
| 	], | 	], | ||||||
| }) | }) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user