Merge remote-tracking branch 'origin/master'
commit
8ac9e658c9
|
@ -210,6 +210,7 @@ module.exports = {
|
|||
},
|
||||
mapping: {
|
||||
// 'assets.fastgit.org': 'usa',
|
||||
'*.electronjs.org': 'quad9',
|
||||
'*amazonaws.com': 'quad9',
|
||||
'*githubusercontent.com': 'quad9',
|
||||
'*yarnpkg.com': 'quad9',
|
||||
|
|
|
@ -100,9 +100,13 @@ function createWindow () {
|
|||
if (args.hideWindow) {
|
||||
startHideWindow = true
|
||||
}
|
||||
|
||||
log.info('start args', args)
|
||||
}
|
||||
log.info('start hide window', startHideWindow)
|
||||
if (app.getLoginItemSettings().wasOpenedAsHidden) {
|
||||
startHideWindow = true
|
||||
}
|
||||
log.info('start hide window', startHideWindow, app.getLoginItemSettings())
|
||||
|
||||
win = new BrowserWindow({
|
||||
width: 900,
|
||||
|
|
|
@ -42,7 +42,7 @@ export default {
|
|||
} else {
|
||||
app.setLoginItemSettings({
|
||||
openAtLogin: true,
|
||||
path: ex,
|
||||
openAsHidden: true,
|
||||
args: [
|
||||
'--hideWindow', '"true"'
|
||||
]
|
||||
|
@ -56,7 +56,7 @@ export default {
|
|||
} else {
|
||||
app.setLoginItemSettings({
|
||||
openAtLogin: false,
|
||||
path: ex,
|
||||
openAsHidden: false,
|
||||
args: []
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue