Handle window close request - check for unsaved changes.
(self, window)
| 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.""" |
nothing calls this directly
no test coverage detected