fix: tray icon not highlighting on empty menu (#34173)
This commit is contained in:
parent
142e1f667b
commit
a8103691ac
1 changed files with 3 additions and 3 deletions
|
@ -190,9 +190,9 @@
|
||||||
gfx::ScreenPointFromNSPoint([event locationInWindow]),
|
gfx::ScreenPointFromNSPoint([event locationInWindow]),
|
||||||
ui::EventFlagsFromModifiers([event modifierFlags]));
|
ui::EventFlagsFromModifiers([event modifierFlags]));
|
||||||
|
|
||||||
// Pass click to superclass to show menu. Custom mouseUp handler won't be
|
// Pass click to superclass to show menu if one exists and has a non-zero
|
||||||
// invoked.
|
// number of items. Custom mouseUp handler won't be invoked in this case.
|
||||||
if (menuController_) {
|
if (menuController_ && [[menuController_ menu] numberOfItems] > 0) {
|
||||||
[self handleClickNotifications:event];
|
[self handleClickNotifications:event];
|
||||||
[super mouseDown:event];
|
[super mouseDown:event];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue