fix macos 11 menu highlight

This commit is contained in:
yicheng 2020-09-06 10:44:58 +08:00
parent c32814b1ba
commit 605bacf08e

View File

@ -15,7 +15,13 @@ class MenuItemBaseView: NSView {
// MARK: Public
var isHighlighted: Bool = false
var isHighlighted: Bool = false {
didSet {
if #available(macOS 11, *) {
setNeedsDisplay()
}
}
}
let effectView: NSVisualEffectView = {
let effectView = NSVisualEffectView()