()
| 631 | self._write_and_reload(show_status=False) |
| 632 | |
| 633 | def undo_delete(): |
| 634 | try: |
| 635 | if original_index is None: |
| 636 | self.parser.config.add_host(host) |
| 637 | else: |
| 638 | self.parser.config.hosts.insert(original_index, host) |
| 639 | self._write_and_reload(show_status=False) |
| 640 | try: |
| 641 | self.host_list.select_host(host) |
| 642 | self._set_host_editor_visible(True) |
| 643 | self.host_editor.load_host(host) |
| 644 | except Exception: |
| 645 | pass |
| 646 | except Exception: |
| 647 | pass |
| 648 | |
| 649 | self._show_undo_toast(_("Host deleted"), undo_delete) |
| 650 |
nothing calls this directly
no test coverage detected