mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: tray icon not highlighting on empty menu (#34206)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -190,9 +190,9 @@
|
||||
gfx::ScreenPointFromNSPoint([event locationInWindow]),
|
||||
ui::EventFlagsFromModifiers([event modifierFlags]));
|
||||
|
||||
// Pass click to superclass to show menu. Custom mouseUp handler won't be
|
||||
// invoked.
|
||||
if (menuController_) {
|
||||
// Pass click to superclass to show menu if one exists and has a non-zero
|
||||
// number of items. Custom mouseUp handler won't be invoked in this case.
|
||||
if (menuController_ && [[menuController_ menu] numberOfItems] > 0) {
|
||||
[self handleClickNotifications:event];
|
||||
[super mouseDown:event];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user