mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-02-22 00:55:11 +00:00
fix lint
This commit is contained in:
parent
edae301047
commit
0061868597
|
@ -613,7 +613,11 @@ impl AppState {
|
|||
return;
|
||||
}
|
||||
|
||||
let actual_index = if self.at_root() { selected_index } else { selected_index - 1 };
|
||||
let actual_index = if self.at_root() {
|
||||
selected_index
|
||||
} else {
|
||||
selected_index - 1
|
||||
};
|
||||
|
||||
if let Some(item) = self.filter.item_list().get(actual_index) {
|
||||
if item.has_children {
|
||||
|
|
Loading…
Reference in New Issue
Block a user