From b2dc0b70641c0c880e6e0202a8e38c938a7c94cf Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Fri, 6 Feb 2026 10:02:29 +0100 Subject: [PATCH] hide tabactions when contextual tab bar active --- .../widgets/browser_modules/bottom_app_bar.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart index b6edd05e..b5c1836e 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart @@ -79,6 +79,7 @@ class BrowserTopAppBar extends HookConsumerWidget { showQuickTabSwitcherBar: false, showMainToolbarNavigationButton: !showContextualToolbar, showMainToolbarTabsCount: !showContextualToolbar, + showMainToolbarTabActionButton: !showContextualToolbar, ); } @@ -114,6 +115,7 @@ class BrowserBottomAppBar extends HookConsumerWidget { showQuickTabSwitcherBar: showQuickTabSwitcherBar, showMainToolbarNavigationButton: !showContextualToolbar, showMainToolbarTabsCount: !showContextualToolbar, + showMainToolbarTabActionButton: !showContextualToolbar, ); } @@ -143,6 +145,7 @@ class BrowserTabBar extends HookConsumerWidget { final bool showMainToolbarTabsCount; final bool showMainToolbarNavigationButton; + final bool showMainToolbarTabActionButton; const BrowserTabBar({ required this.showMainToolbar, @@ -151,6 +154,7 @@ class BrowserTabBar extends HookConsumerWidget { required this.showQuickTabSwitcherBar, required this.showMainToolbarTabsCount, required this.showMainToolbarNavigationButton, + required this.showMainToolbarTabActionButton, }); static const contextualToolabarHeight = 54.0; @@ -361,7 +365,7 @@ class BrowserTabBar extends HookConsumerWidget { displayedSheet: displayedSheet, showLongPressMenu: true, ), - if (selectedTabId != null && !showContextualToolbar) + if (selectedTabId != null && showMainToolbarTabActionButton) TabMenu( controller: trippleDotMenuController, selectedTabId: selectedTabId,