зеркало из https://github.com/mozilla/pjs.git
followup to menubarless dialog fix. sometimes during startup it is normal to not have a native application menu yet. b=355138
This commit is contained in:
Родитель
222f7423f1
Коммит
931e6533c5
|
@ -1060,9 +1060,9 @@ NS_IMETHODIMP nsCocoaWindow::GetAttention(PRInt32 aCycleCount)
|
||||||
geckoMenuBar->Paint();
|
geckoMenuBar->Paint();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// we are definitely going to need an application menu here, and we can't
|
// sometimes we don't have a native application menu early in launching
|
||||||
// create one ourselves
|
if (!sApplicationMenu)
|
||||||
NS_ASSERTION(sApplicationMenu, "No native application menu and we need one!");
|
return;
|
||||||
|
|
||||||
// create a new menu bar with one item
|
// create a new menu bar with one item
|
||||||
NSMenu* newMenuBar = [[NSMenu alloc] init];
|
NSMenu* newMenuBar = [[NSMenu alloc] init];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче