switched stuff in the state.rs
This commit is contained in:
@@ -38,7 +38,7 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut event_handler = EventHandler::new();
|
||||
let event_reader = EventReader::new();
|
||||
let mut app_state = AppState::new()?;
|
||||
app_state.ui.profile_tree = profile_tree;
|
||||
app_state.profile_tree = profile_tree;
|
||||
|
||||
// Fetch the total count of Adresar entries
|
||||
let total_count = grpc_client.get_adresar_count().await?;
|
||||
@@ -62,7 +62,7 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
|
||||
&event_handler.command_input,
|
||||
event_handler.command_mode,
|
||||
&event_handler.command_message,
|
||||
&app_state.ui,
|
||||
&app_state,
|
||||
);
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user