warnings fixed

This commit is contained in:
filipriec
2025-04-18 16:17:02 +02:00
parent 6010b9a0af
commit 2a1fafc3f9
11 changed files with 6 additions and 115 deletions

View File

@@ -66,8 +66,7 @@ pub fn render_admin_panel_admin(
.enumerate()
.map(|(idx, profile)| {
// Check persistent selection for prefix, navigation state for style/highlight
let is_selected = admin_state.selected_profile_index == Some(idx); // Use persistent state for [*]
let is_navigated = admin_state.profile_list_state.selected() == Some(idx); // Use nav state for highlight/>
let is_selected = admin_state.selected_profile_index == Some(idx);
let prefix = if is_selected { "[*] " } else { "[ ] " };
let style = if is_selected { // Style based on selection too
Style::default().fg(theme.highlight).add_modifier(ratatui::style::Modifier::BOLD)