mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
change to false
run clippy
This commit is contained in:
parent
ee4f28fed2
commit
563676db7c
|
@ -114,7 +114,7 @@ impl FloatContent for RunningCommand {
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
/// Handle key events of the running command "window". Returns true when the "window" should be
|
/// Handle key events of the running command "window". Returns true when the "window" should be
|
||||||
/// closed
|
/// closed
|
||||||
|
|
|
@ -509,14 +509,12 @@ impl AppState {
|
||||||
self.focus = Focus::List;
|
self.focus = Focus::List;
|
||||||
if !self.multi_select {
|
if !self.multi_select {
|
||||||
self.selected_commands.clear()
|
self.selected_commands.clear()
|
||||||
} else {
|
} else if let Some(node) = self.get_selected_node() {
|
||||||
if let Some(node) = self.get_selected_node() {
|
|
||||||
if !node.multi_select {
|
if !node.multi_select {
|
||||||
self.selected_commands.retain(|cmd| cmd.name != node.name);
|
self.selected_commands.retain(|cmd| cmd.name != node.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ConfirmStatus::Confirm => self.handle_confirm_command(),
|
ConfirmStatus::Confirm => self.handle_confirm_command(),
|
||||||
ConfirmStatus::None => {}
|
ConfirmStatus::None => {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user