Fix dock
This commit is contained in:
@@ -74,6 +74,10 @@ function createWindow() {
|
||||
}
|
||||
});
|
||||
|
||||
if ((os.platform() === 'darwin') && launchHidden) {
|
||||
app.dock.hide();
|
||||
}
|
||||
|
||||
// and load the index.html of the app.
|
||||
const startUrl = process.env.ELECTRON_START_URL || url.format({
|
||||
pathname: path.join(__dirname, '/build/index.html'),
|
||||
@@ -175,7 +179,7 @@ if (!instanceLock) {
|
||||
} else {
|
||||
app.on('second-instance', () => {
|
||||
if (mainWindow) {
|
||||
setWindowVisibility(true, true);
|
||||
setWindowVisibility(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user