mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 23:09:11 +02:00
Add debug flag to console
This commit is contained in:
parent
09cc9e24d0
commit
328f64da6f
1 changed files with 9 additions and 0 deletions
|
@ -42,6 +42,8 @@ var interfacePath = null;
|
|||
var dsPath = null;
|
||||
var acPath = null;
|
||||
|
||||
var debug = argv.debug;
|
||||
|
||||
if (argv.localDebugBuilds || argv.localReleaseBuilds) {
|
||||
interfacePath = pathFinder.discoveredPath("Interface", argv.localReleaseBuilds);
|
||||
dsPath = pathFinder.discoveredPath("domain-server", argv.localReleaseBuilds);
|
||||
|
@ -88,6 +90,13 @@ app.on('ready', function() {
|
|||
resizable: false
|
||||
});
|
||||
|
||||
// In debug mode, keep the menu bar, but auto-hide it so the UI still looks the same.
|
||||
if (debug) {
|
||||
mainWindow.setAutoHideMenuBar(true);
|
||||
} else {
|
||||
mainWindow.setMenu(null);
|
||||
}
|
||||
|
||||
// and load the index.html of the app.
|
||||
mainWindow.loadURL('file://' + __dirname + '/index.html');
|
||||
|
||||
|
|
Loading…
Reference in a new issue