From 2aed6691b91ce5e01bd22287f25d253ef69696c6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 4 Nov 2024 22:52:15 +0200 Subject: [PATCH] update 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 b1741003..715dfee7 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -85,17 +85,17 @@ impl Tab { // Init events - // Setup actions for context menu widget.gobject().connect_setup_menu({ + // Clone actions to update let action_page_close = action_page_close.clone(); let action_page_home = action_page_home.clone(); let action_page_reload = action_page_reload.clone(); move |tab_view, tab_page| { - // Get state + // Setup state for selected page let state = match tab_page { - // Menu opened: setup selected page + // Context menu opened Some(this) => tab_view.page_position(this).to_variant(), - // Menu closed: reset to defaults + // Context menu closed (reset state to defaults) None => (-1).to_variant(), };