mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
win: Don't emit right-clicked event when there is menu attached
This commit is contained in:
@@ -86,8 +86,10 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
|
||||
NotifyClicked(gfx::Rect(rect), modifiers);
|
||||
return;
|
||||
} else if (!double_button_click) { // single right click
|
||||
NotifyRightClicked(gfx::Rect(rect), modifiers);
|
||||
PopContextMenu(cursor_pos);
|
||||
if (menu_model_)
|
||||
PopContextMenu(cursor_pos);
|
||||
else
|
||||
NotifyRightClicked(gfx::Rect(rect), modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user