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

Method _toggle_search

src/ui/main_window.py:408–418  ·  view source on GitHub ↗
(self, force=None)

Source from the content-addressed store, hash-verified

406 pass
407
408 def _toggle_search(self, force=None):
409 try:
410 make_visible = True if force is None else bool(force)
411 self.host_list.search_bar.set_visible(make_visible)
412 if make_visible:
413 self.host_list.search_entry.grab_focus()
414 else:
415 self.host_list.search_entry.set_text("")
416 self.host_list.filter_hosts("")
417 except Exception:
418 pass
419
420 def _on_host_save(self, editor, host):
421 """Handle host save signal from editor."""

Callers 3

_on_search_actionMethod · 0.95
_on_key_pressedMethod · 0.95
_on_search_actionMethod · 0.80

Calls 1

filter_hostsMethod · 0.80

Tested by

no test coverage detected