mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
update tests for menu closed event and call cancel on closePopup
This commit is contained in:
committed by
Cheng Zhao
parent
14b65467d8
commit
ef7357dedc
@@ -60,6 +60,8 @@ void MenuViews::PopupAt(Window* window, int x, int y, int positioning_item) {
|
||||
}
|
||||
|
||||
void MenuViews::ClosePopupAt(int32_t window_id) {
|
||||
if (menu_runners_[window_id])
|
||||
menu_runners_[window_id]->Cancel();
|
||||
menu_runners_.erase(window_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user