From 1222254d555b493ce2d9f6657e27dd5ff6ea5c33 Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Mon, 13 Jan 2025 19:08:05 +0600 Subject: [PATCH] disable Pin Tab command in Fire Window --- DuckDuckGo/Menus/MainMenuActions.swift | 3 ++- DuckDuckGo/TabBar/View/TabBarViewItem.swift | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/Menus/MainMenuActions.swift b/DuckDuckGo/Menus/MainMenuActions.swift index dda445c349..6ff726d666 100644 --- a/DuckDuckGo/Menus/MainMenuActions.swift +++ b/DuckDuckGo/Menus/MainMenuActions.swift @@ -1119,7 +1119,8 @@ extension MainViewController: NSMenuItemValidation { // Pin Tab case #selector(MainViewController.pinOrUnpinTab(_:)): guard getActiveTabAndIndex()?.tab.isUrl == true, - tabCollectionViewModel.pinnedTabsManager != nil + tabCollectionViewModel.pinnedTabsManager != nil, + !isBurner else { return false } diff --git a/DuckDuckGo/TabBar/View/TabBarViewItem.swift b/DuckDuckGo/TabBar/View/TabBarViewItem.swift index cc5669c7ed..a30209b8df 100644 --- a/DuckDuckGo/TabBar/View/TabBarViewItem.swift +++ b/DuckDuckGo/TabBar/View/TabBarViewItem.swift @@ -702,7 +702,9 @@ extension TabBarViewItem: NSMenuDelegate { // Menu Items // Duplicate, Pin, Mute Section addDuplicateMenuItem(to: menu) - addPinMenuItem(to: menu) + if !isBurner { + addPinMenuItem(to: menu) + } addMuteUnmuteMenuItem(to: menu) menu.addItem(.separator())