feat: Acutal fix the the mouse events output

The EnableMouseCapture from Crossterm was too broad, by only enabling a subject of the events, 1) performance is improvedand 2) and intermittent bug where mouse events were output to stdout has been removed
This commit is contained in:
Jack Wills
2023-03-02 01:09:17 +00:00
parent e650034d50
commit 0a1b531116
5 changed files with 32 additions and 43 deletions
+2 -2
View File
@@ -16,7 +16,6 @@ use crate::{
app_data::{AppData, ContainerId, DockerControls},
app_error::AppError,
parse_args::CliArgs,
stop_running,
ui::{GuiState, Status},
ENTRY_POINT,
};
@@ -405,7 +404,8 @@ impl DockerData {
.values()
.into_iter()
.for_each(tokio::task::JoinHandle::abort);
stop_running(&self.is_running);
self.is_running
.store(false, std::sync::atomic::Ordering::SeqCst);
}
}
}