mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: tray setContextMenu crash
Co-authored-by: Zhuo Lu <sethlu@mintkit.net> Co-authored-by: Kristine Zhang <kzhang@slack-corp.com>
This commit is contained in:
committed by
Electron Bot
parent
0a3211c387
commit
bace4890c8
@@ -123,7 +123,9 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
|
||||
[menu_ cancelTracking];
|
||||
isMenuOpen_ = NO;
|
||||
model_->MenuWillClose();
|
||||
closeCallback.Run();
|
||||
if (!closeCallback.is_null()) {
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, closeCallback);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user