chore: disambiguate buffer setter method

This commit is contained in:
aclist 2026-08-19 16:59:00 +09:00
parent 1a3154712f
commit 6ded9a3eec
3 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ class ConnectionManager:
def _server_timeout(self) -> None:
dialog = ExceptionDialog(self.controller, server_timeout)
dialog.set_secondary_text(kb.DZG_006)
dialog.set_details_buffer(kb.DZG_006)
dialog.show_all()
dialog.run()

View File

@ -421,7 +421,7 @@ class ServerModelManager:
# customize statusbar and dialog accordingly
if show_dialog:
dialog = ExceptionDialog(self.controller, server_timeout)
dialog.set_secondary_text(kb.DZG_006)
dialog.set_details_buffer(kb.DZG_006)
dialog.show_all()
dialog.run()

View File

@ -316,6 +316,6 @@ class ExceptionDialog(TextBufferDialog):
else:
GLib.idle_add(self.error_details.set_propagate_natural_height, False)
def set_secondary_text(self, text: str) -> None:
def set_details_buffer(self, text: str) -> None:
self.details_buffer.set_text(text)
self.error_notebook.set_show_tabs(True)