Kill aux windows when killing the HUD.
This commit is contained in:
		
							parent
							
								
									b6ee768f2c
								
							
						
					
					
						commit
						37a643f054
					
				|  | @ -167,6 +167,11 @@ class Hud: | |||
|             return # no killing self twice. | ||||
|         for k in self.stat_windows: | ||||
|             self.stat_windows[k].window.destroy() | ||||
| #    also kill any aux windows | ||||
|         for m in self.aux_windows: | ||||
|             m.destroy() | ||||
|             self.aux_windows.remove(m) | ||||
| 
 | ||||
|         self.deleted = True | ||||
|         self.main_window.disconnect(self.main_window.destroyhandler) # so we don't potentially infiniteloop in here, right | ||||
|         self.main_window.destroy() | ||||
|  |  | |||
|  | @ -50,6 +50,9 @@ class Aux_Window: | |||
|     def update_gui(self): | ||||
|         pass | ||||
| 
 | ||||
|     def destroy(self): | ||||
|         self.container.destroy() | ||||
| 
 | ||||
| class Stud_mucked(Aux_Window): | ||||
|     def __init__(self, container, hud, config, params): | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user