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

Method _on_host_changed

src/ui/main_window.py:668–677  ·  view source on GitHub ↗
(self, editor, host)

Source from the content-addressed store, hash-verified

666 self.host_list.select_host(self.parser.config.hosts[0])
667
668 def _on_host_changed(self, editor, host):
669 self.is_dirty = self.parser.config.is_dirty()
670 try:
671 self.host_editor._update_button_sensitivity()
672 except Exception:
673 pass
674 try:
675 self.host_list.set_undo_enabled(True)
676 except Exception:
677 pass
678
679 def _on_editor_validity_changed(self, editor, is_valid: bool):
680 pass

Callers

nothing calls this directly

Calls 3

is_dirtyMethod · 0.80
set_undo_enabledMethod · 0.80

Tested by

no test coverage detected