mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-21 11:17:00 +01: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…
x
Reference in New Issue
Block a user