From 7978b0f60d5d8536dd97be650af138f9d0fdab60 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Dec 2024 09:52:13 +0200 Subject: [PATCH] add comments --- src/app/browser/window/tab.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 07981df1..73b78f02 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -55,22 +55,22 @@ impl Tab { 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 for tab activated + item.page.update(); // update window actions using page of tab activated } } } - Some(position) + Some(position) // activated tab position } // on menu close None => { if let Some(page) = widget.page(None) { if let Some(id) = page.keyword() { if let Some(item) = index.borrow().get(&id) { - item.page.update(); // update window actions for current tab + item.page.update(); // update window actions using page of current tab } } } - None + None // selected tab } };