Skip to content

Commit

Permalink
disable Pin Tab command in Fire Window
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Jan 13, 2025
1 parent 942533c commit 1222254
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DuckDuckGo/Menus/MainMenuActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 3 additions & 1 deletion DuckDuckGo/TabBar/View/TabBarViewItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 1222254

Please sign in to comment.