mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
chore: disambiguate buffer setter method
This commit is contained in:
parent
1a3154712f
commit
6ded9a3eec
@ -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()
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user