Add integration tests based on VM

This commit is contained in:
2026-10-26 22:34:00 +02:00
parent f4a6540df9
commit 7d0f006601
22 changed files with 3826 additions and 69 deletions
+9 -1
View File
@@ -269,6 +269,15 @@ impl UiState {
}
pub fn select_peer_index(&mut self, peer_index: usize) -> bool {
if !self.highlight_peer_index(peer_index) {
return false;
}
self.screen = Screen::ClientDetails;
true
}
/// Move the client-list highlight without changing the active screen.
pub fn highlight_peer_index(&mut self, peer_index: usize) -> bool {
let Some(client) = self.view.as_ref().and_then(|view| {
view.clients
.iter()
@@ -278,7 +287,6 @@ impl UiState {
};
self.selected_peer_index = Some(peer_index);
self.selected_identity = client.identity;
self.screen = Screen::ClientDetails;
true
}