fix: disallow commands to be sent so an oxker container, closes #19

This commit is contained in:
Jack Wills
2022-12-05 03:52:41 +00:00
parent 43fe902bae
commit 160b8021b1
5 changed files with 31 additions and 8 deletions
+4
View File
@@ -250,6 +250,10 @@ impl InputHandler {
if let Some(command) = option_command {
let option_id = self.app_data.lock().get_selected_container_id();
// Poor way of disallowing commands to be sent to a containerised okxer
if self.app_data.lock().selected_container_is_oxker() {
return
};
if let Some(id) = option_id {
match command {
DockerControls::Pause => self