[Add] UI optimizations, Graphs, More console commands
This commit is contained in:
parent
faf60b144a
commit
997c567c80
13 changed files with 424 additions and 115 deletions
|
|
@ -3,6 +3,7 @@ use crate::gui::ui::{UI, UNIQUE};
|
|||
use crate::{RELOAD, SHUTDOWN};
|
||||
use crossterm::event::{Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers, poll, read};
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::time::Duration;
|
||||
|
||||
pub fn setup_input_handler(ui: Arc<UI>) {
|
||||
|
|
@ -30,7 +31,7 @@ pub fn setup_input_handler(ui: Arc<UI>) {
|
|||
if key_event.kind == KeyEventKind::Press {
|
||||
let uic = ui.clone();
|
||||
handle_input(key_event, uic).await;
|
||||
*UNIQUE.write().await = true;
|
||||
UNIQUE.store(true, Ordering::Relaxed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue