fix: disallow commands to be sent so an oxker container, closes #19
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user