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