mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
fix clippy warning
This commit is contained in:
parent
0060bda5d2
commit
33f4454584
1 changed files with 4 additions and 9 deletions
|
|
@ -92,15 +92,10 @@ impl Tab {
|
||||||
let window_action = window_action.clone();
|
let window_action = window_action.clone();
|
||||||
let index = index.clone();
|
let index = index.clone();
|
||||||
move |tab_view| {
|
move |tab_view| {
|
||||||
update_actions(
|
if let Some(tab_page) = tab_view.selected_page() {
|
||||||
tab_view,
|
|
||||||
tab_view.selected_page().map(|tab_page| {
|
|
||||||
tab_page.set_needs_attention(false);
|
tab_page.set_needs_attention(false);
|
||||||
tab_page
|
}
|
||||||
}),
|
update_actions(tab_view, tab_view.selected_page(), &index, &window_action)
|
||||||
&index,
|
|
||||||
&window_action,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue