Auto-switch to response body tab after request completes
This commit is contained in:
parent
daf03123a6
commit
9e7fbcca1f
@ -924,6 +924,9 @@ class RequestTabWidget(Gtk.Box):
|
||||
language = self._get_language_from_content_type(content_type)
|
||||
source_buffer.set_language(language)
|
||||
|
||||
# Switch to body tab
|
||||
self.response_stack.set_visible_child_name("body")
|
||||
|
||||
def display_error(self, error: str) -> None:
|
||||
"""Display error in this tab's UI."""
|
||||
self.status_label.set_text("Error")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user