added a bit of breakup between the startup output and the prompt to
select a config, also made the switch_config command clear the current_input so that it's not left over when you come back.
This commit is contained in:
+2
-2
@@ -141,7 +141,7 @@ async fn main() {
|
||||
);
|
||||
exit(1);
|
||||
}
|
||||
let (mut appstate) = AppState::new();
|
||||
let mut appstate = AppState::new();
|
||||
let config_load = appstate.load_config(client_config_path.clone(), true);
|
||||
if config_load.is_err() {
|
||||
eprintln!("error loading config!");
|
||||
@@ -153,8 +153,8 @@ async fn main() {
|
||||
});
|
||||
let handles = Arc::new(Mutex::new(Vec::new()));
|
||||
let handles_clone = handles.clone();
|
||||
println!("entering tui...");
|
||||
let primary_handle = spawn(move || {
|
||||
println!("entering tui...");
|
||||
let _ = startup(appstate, false, handles_clone);
|
||||
});
|
||||
if let Ok(mut lock) = handles.lock() {
|
||||
|
||||
Reference in New Issue
Block a user