mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:54:29 +02:00
Fixup console menus to only show in debug
This commit is contained in:
parent
8695f1bf4d
commit
08a845d3af
1 changed files with 6 additions and 2 deletions
|
@ -413,7 +413,9 @@ function maybeInstallDefaultContentSet(onComplete) {
|
|||
resizable: false
|
||||
});
|
||||
window.loadURL('file://' + __dirname + '/downloader.html');
|
||||
window.setMenu(null);
|
||||
if (!debug) {
|
||||
window.setMenu(null);
|
||||
}
|
||||
window.show();
|
||||
|
||||
window.on('closed', onComplete);
|
||||
|
@ -492,7 +494,9 @@ function maybeShowSplash() {
|
|||
resizable: false
|
||||
});
|
||||
window.loadURL('file://' + __dirname + '/splash.html');
|
||||
// window.setMenu(null);
|
||||
if (!debug) {
|
||||
window.setMenu(null);
|
||||
}
|
||||
window.show();
|
||||
|
||||
window.webContents.on('new-window', function(e, url) {
|
||||
|
|
Loading…
Reference in a new issue