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

Method _clear_custom_options

src/ui/host_editor.py:679–686  ·  view source on GitHub ↗

Clears all custom option rows from the list.

(self)

Source from the content-addressed store, hash-verified

677 self._add_custom_option_row(option.key, option.value)
678
679 def _clear_custom_options(self):
680 """Clears all custom option rows from the list."""
681 if not hasattr(self, "custom_options_list") or not self.custom_options_list:
682 return
683 child = self.custom_options_list.get_first_child()
684 while child:
685 self.custom_options_list.remove(child)
686 child = self.custom_options_list.get_first_child()
687
688 def _add_custom_option_row(self, key: str = "", value: str = ""):
689 """Adds a new row for a custom option to the list."""

Callers 1

_load_custom_optionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected