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

Method _on_close_request

src/ui/main_window.py:431–438  ·  view source on GitHub ↗

Handle window close request - check for unsaved changes.

(self, window)

Source from the content-addressed store, hash-verified

429 self.host_list.filter_hosts("")
430
431 def _on_close_request(self, window):
432 """Handle window close request - check for unsaved changes."""
433 if (
434 hasattr(self.host_editor, "is_host_dirty")
435 and self.host_editor.is_host_dirty()
436 ):
437 return self._show_unsaved_changes_dialog()
438 return False
439
440 def _show_unsaved_changes_dialog(self):
441 """Show alert dialog asking user what to do with unsaved changes."""

Callers

nothing calls this directly

Calls 2

is_host_dirtyMethod · 0.80

Tested by

no test coverage detected