From 5df952603e687ac92a79cd00b7005965e23ee3ae Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Dec 2024 10:24:12 +0200 Subject: [PATCH] remove shared position holder --- src/app/browser/window/tab.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 39fe9eeb..28330fff 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -51,14 +51,12 @@ impl Tab { let state = match tab_page { // on menu open Some(this) => { - let position = tab_view.page_position(this); 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 + Some(tab_view.page_position(this)) // activated tab } // on menu close None => {