Fixed: aux save layout doesn't work
Bug maker, look at http://docs.python.org/tutorial/classes.html#generator-expressions (...for...) returns generator rather than tuple
This commit is contained in:
		
							parent
							
								
									2d890be3c8
								
							
						
					
					
						commit
						c4d3789657
					
				| 
						 | 
					@ -440,7 +440,7 @@ class Hud:
 | 
				
			||||||
            new_layout[self.stat_windows[sw].adj - 1] = new_loc
 | 
					            new_layout[self.stat_windows[sw].adj - 1] = new_loc
 | 
				
			||||||
        self.config.edit_layout(self.table.site, self.max, locations = new_layout)
 | 
					        self.config.edit_layout(self.table.site, self.max, locations = new_layout)
 | 
				
			||||||
#    ask each aux to save its layout back to the config object
 | 
					#    ask each aux to save its layout back to the config object
 | 
				
			||||||
        (aux.save_layout() for aux in self.aux_windows)
 | 
					        [aux.save_layout() for aux in self.aux_windows]
 | 
				
			||||||
#    save the config object back to the file
 | 
					#    save the config object back to the file
 | 
				
			||||||
        print "saving new xml file"
 | 
					        print "saving new xml file"
 | 
				
			||||||
        self.config.save()
 | 
					        self.config.save()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user