kvui: block settings menu
This commit is contained in:
		
							parent
							
								
									ae7dad8bf9
								
							
						
					
					
						commit
						b64565594a
					
				
							
								
								
									
										4
									
								
								kvui.py
								
								
								
								
							
							
						
						
									
										4
									
								
								kvui.py
								
								
								
								
							| 
						 | 
					@ -488,6 +488,10 @@ class GameManager(App):
 | 
				
			||||||
        if hasattr(self, "energy_link_label"):
 | 
					        if hasattr(self, "energy_link_label"):
 | 
				
			||||||
            self.energy_link_label.text = f"EL: {Utils.format_SI_prefix(self.ctx.current_energy_link_value)}J"
 | 
					            self.energy_link_label.text = f"EL: {Utils.format_SI_prefix(self.ctx.current_energy_link_value)}J"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # default F1 keybind, opens a settings menu, that seems to break the layout engine once closed
 | 
				
			||||||
 | 
					    def open_settings(self, *largs):
 | 
				
			||||||
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class LogtoUI(logging.Handler):
 | 
					class LogtoUI(logging.Handler):
 | 
				
			||||||
    def __init__(self, on_log):
 | 
					    def __init__(self, on_log):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue