Merge pull request #77 from zhangweiii/master

修复Mac下dock栏不显示图标
This commit is contained in:
Hunlongyu
2020-06-05 10:25:16 +08:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ let mini
// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }])
function createWindow () {
function createWindow() {
win = new BrowserWindow({
width: 1080,
height: 720,
@@ -44,7 +44,7 @@ function createWindow () {
})
}
function createMini () {
function createMini() {
mini = new BrowserWindow({
width: 550,
minWidth: 260,
@@ -178,6 +178,9 @@ if (!gotTheLock) {
})
}
// show mac dock icon
app.dock.show()
// Exit cleanly on request from parent process in development mode.
if (isDevelopment) {
if (process.platform === 'win32') {