From 0a65d67989e413ed2cfb9b963d3be96ef85e8631 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Dec 2024 10:22:22 +0200 Subject: [PATCH] remove extra selector --- src/app/browser/window/tab.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index ca70b63b..39fe9eeb 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -52,13 +52,12 @@ impl Tab { // on menu open Some(this) => { let position = tab_view.page_position(this); - if let Some(page) = widget.page(Some(position)) { - if let Some(id) = page.keyword() { - if let Some(item) = index.borrow().get(&id) { - item.page.update(); // update window actions using page of tab activated - } + if let Some(id) = this.keyword() { + if let Some(item) = index.borrow().get(&id) { + item.page.update(); // update window actions using page of tab activated } } + Some(position) // activated tab } // on menu close