working perfectly well right now

This commit is contained in:
filipriec
2025-03-24 15:13:57 +01:00
parent 3bb771187a
commit 355aff3032
2 changed files with 8 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ pub fn render_ui(
command_mode: bool, command_mode: bool,
command_message: &str, command_message: &str,
app_state: &AppState, app_state: &AppState,
intro_state: &intro::IntroState, // intro_state parameter removed
) { ) {
render_background(f, f.area(), theme); render_background(f, f.area(), theme);
@@ -41,10 +41,9 @@ pub fn render_ui(
let main_content_area = root[0]; let main_content_area = root[0];
if app_state.ui.show_intro { if app_state.ui.show_intro {
intro_state.render(f, main_content_area, theme); // Use app_state's intro_state directly
app_state.ui.intro_state.render(f, main_content_area, theme);
} else if app_state.ui.show_admin { } else if app_state.ui.show_admin {
// Create temporary AdminPanelState for rendering
// Create temporary AdminPanelState for rendering // Create temporary AdminPanelState for rendering
let mut admin_state = AdminPanelState::new( let mut admin_state = AdminPanelState::new(
app_state.profile_tree.profiles app_state.profile_tree.profiles

View File

@@ -74,7 +74,6 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
event_handler.command_mode, event_handler.command_mode,
&event_handler.command_message, &event_handler.command_message,
&app_state, &app_state,
&intro_state,
); );
})?; })?;