mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 02:04:05 +02:00
only hide the dock if on OS X
This commit is contained in:
parent
fd4b949fdc
commit
9065a49d05
1 changed files with 4 additions and 8 deletions
|
@ -176,15 +176,11 @@ var hiddenWindow = null;
|
|||
// This method will be called when Electron has finished
|
||||
// initialization and is ready to create browser windows.
|
||||
app.on('ready', function() {
|
||||
// create a BrowserWindow so the app launches but don't show it
|
||||
hiddenWindow = new BrowserWindow({
|
||||
icon: APP_ICON,
|
||||
title: "High Fidelity",
|
||||
show: false
|
||||
});
|
||||
|
||||
// hide the dock icon
|
||||
app.dock.hide()
|
||||
if (app.dock) {
|
||||
// hide the dock icon on OS X
|
||||
app.dock.hide()
|
||||
}
|
||||
|
||||
var logPath = path.join(app.getAppPath(), 'logs');
|
||||
|
||||
|
|
Loading…
Reference in a new issue