Skip to content

Commit

Permalink
Revert "Fix incorrect highlighting after deleting item"
Browse files Browse the repository at this point in the history
This reverts commit 4ba22de.
Fixed in e71736a.
  • Loading branch information
p0deje committed Sep 22, 2023
1 parent e71736a commit fd10f90
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Maccy/Menu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,7 @@ class Menu: NSMenu, NSMenuDelegate {

updateUnpinnedItemsVisibility()
setKeyEquivalents(historyMenuItems)

let mainItemToHighlightIndex = historyItemToRemoveIndex - 1
if items.count >= mainItemToHighlightIndex {
highlight(items[mainItemToHighlightIndex])
}
highlight(items[historyItemToRemoveIndex])
}
}

Expand Down

0 comments on commit fd10f90

Please sign in to comment.