diff --git a/pudb/debugger.py b/pudb/debugger.py index ffefe6c3..73a61ac9 100644 --- a/pudb/debugger.py +++ b/pudb/debugger.py @@ -2841,7 +2841,7 @@ def interaction(self, exc_tuple, show_exc_dialog=True): (None, " "), ("header warning", "[POST-MORTEM MODE]") ]) - self.update_header(override=True) + self.show_header() CONFIG["hide_header"] = False elif exc_tuple is not None: @@ -2849,7 +2849,7 @@ def interaction(self, exc_tuple, show_exc_dialog=True): (None, " "), ("header warning", "[PROCESSING EXCEPTION - hit 'e' to examine]") ]) - self.update_header(override=True) + self.show_header() CONFIG["hide_header"] = False @@ -2965,11 +2965,14 @@ def make_frame_ui(i, frame_lineno): def update_cmdline_win(self): self.set_cmdline_state(not CONFIG["hide_cmdline_win"]) - def update_header(self, override=None): - if override is not None: - self.top._w.header = self.header if override else None + def update_header(self): + """Update the header to reflect the current settings.""" self.top._w.header = self.header if not CONFIG["hide_header"] else None + def show_header(self): + """Show the header.""" + self.top._w.header = self.header + # }}} # vim: foldmethod=marker:expandtab:softtabstop=4