change to false

run clippy
This commit is contained in:
nnyyxxxx 2024-11-13 03:46:00 -05:00
parent 692bff1627
commit a8343155e5
No known key found for this signature in database
GPG Key ID: 6038FFD6589902CB
2 changed files with 4 additions and 6 deletions

View File

@ -113,7 +113,7 @@ impl FloatContent for RunningCommand {
}
_ => {}
}
true
false
}
/// Handle key events of the running command "window". Returns true when the "window" should be
/// closed

View File

@ -509,11 +509,9 @@ impl AppState {
self.focus = Focus::List;
if !self.multi_select {
self.selected_commands.clear()
} else {
if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
} else if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
}
}