mac: Call callback when menu is programmely closed
This commit is contained in:
parent
9c6aa9ce90
commit
c3eadd5b63
1 changed files with 2 additions and 1 deletions
|
@ -115,8 +115,9 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
|
||||||
- (void)cancel {
|
- (void)cancel {
|
||||||
if (isMenuOpen_) {
|
if (isMenuOpen_) {
|
||||||
[menu_ cancelTracking];
|
[menu_ cancelTracking];
|
||||||
model_->MenuWillClose();
|
|
||||||
isMenuOpen_ = NO;
|
isMenuOpen_ = NO;
|
||||||
|
model_->MenuWillClose();
|
||||||
|
closeCallback.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue