fix macos 11 menu highlight
This commit is contained in:
parent
c32814b1ba
commit
605bacf08e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user