still one error missing

This commit is contained in:
filipriec
2025-03-22 20:05:13 +01:00
parent 04b4220c76
commit 7d4b043d63
4 changed files with 40 additions and 20 deletions

View File

@@ -44,7 +44,13 @@ pub fn render_ui(
if app_state.ui.show_intro {
intro_state.render(f, main_content_area, theme);
} else if app_state.ui.show_admin {
admin_panel_state.render(f, main_content_area, theme);
admin_panel_state.render(
f,
main_content_area,
theme,
&app_state.profile_tree,
&app_state.selected_profile,
);
} else {
let (sidebar_area, form_area) = calculate_sidebar_layout(
app_state.ui.show_sidebar,
@@ -52,7 +58,13 @@ pub fn render_ui(
);
if let Some(sidebar_rect) = sidebar_area {
sidebar::render_sidebar(f, sidebar_rect, theme, &app_state.profile_tree);
sidebar::render_sidebar(
f,
sidebar_rect,
theme,
&app_state.profile_tree,
&app_state.selected_profile // Remove trailing comma
);
}
// This change makes the form stay stationary when toggling sidebar