mac: Call callback when menu is programmely closed

This commit is contained in:
Cheng Zhao 2018-01-01 16:49:25 +09:00
parent 9c6aa9ce90
commit c3eadd5b63

View file

@ -115,8 +115,9 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
- (void)cancel {
if (isMenuOpen_) {
[menu_ cancelTracking];
model_->MenuWillClose();
isMenuOpen_ = NO;
model_->MenuWillClose();
closeCallback.Run();
}
}