MCPcopy Create free account
hub / github.com/BuddySirJava/SSH-Studio / _connect_header_buttons

Method _connect_header_buttons

src/ui/host_editor.py:411–427  ·  view source on GitHub ↗

Connect header bar button signals.

(self)

Source from the content-addressed store, hash-verified

409 pass
410
411 def _connect_header_buttons(self):
412 """Connect header bar button signals."""
413 try:
414 if hasattr(self, "add_button") and self.add_button:
415 self.add_button.connect("clicked", self._on_add_clicked)
416 except Exception:
417 pass
418 try:
419 if hasattr(self, "duplicate_button") and self.duplicate_button:
420 self.duplicate_button.connect("clicked", self._on_duplicate_clicked)
421 except Exception:
422 pass
423 try:
424 if hasattr(self, "delete_button") and self.delete_button:
425 self.delete_button.connect("clicked", self._on_delete_clicked)
426 except Exception:
427 pass
428
429 def _on_add_clicked(self, button):
430 """Handle add host button click."""

Callers 1

_connect_signalsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected