(self)
| 188 | |
| 189 | |
| 190 | def _update_empty_state(self): |
| 191 | try: |
| 192 | has_hosts = bool(self.hosts) |
| 193 | if self.empty_page: |
| 194 | self.empty_page.set_visible(not has_hosts) |
| 195 | if self.list_box: |
| 196 | self.list_box.set_visible(has_hosts) |
| 197 | except Exception: |
| 198 | pass |
| 199 | |
| 200 | def _on_selection_changed(self, selection): |
| 201 | model, tree_iter = selection.get_selected() |
no outgoing calls
no test coverage detected