[Add] Console Features, QOL

This commit is contained in:
Alex Emmet 2026-02-19 22:58:22 +01:00
commit faf60b144a
11 changed files with 707 additions and 560 deletions

View file

@ -7,10 +7,7 @@ use std::time::Duration;
pub fn setup_input_handler(ui: Arc<UI>) {
tokio::spawn(async move {
ACTIVE_TASKS
.lock()
.unwrap()
.push("Input Handler".to_string());
ACTIVE_TASKS.insert("Input Handler".to_string());
loop {
{
@ -42,8 +39,7 @@ pub fn setup_input_handler(ui: Arc<UI>) {
}
}
{
let mut tasks = ACTIVE_TASKS.lock().unwrap();
tasks.retain(|t| t != "Input Handler");
ACTIVE_TASKS.remove("Input Handler");
}
});
}