Skip to content

Commit

Permalink
Merge pull request #163 from choigawoon/fix/exec-order
Browse files Browse the repository at this point in the history
Fix/trivials
  • Loading branch information
jooy2 authored Nov 10, 2023
2 parents 94250ae + 7015667 commit e9e9f87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/MainRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export const createMainWindow = async (mainWindow: BrowserWindow): Promise<Brows
mainWindow.setAlwaysOnTop(false)
})

// Initialize IPC Communication
IPCs.initialize(mainWindow)

if (Constants.IS_DEV_ENV) {
await mainWindow.loadURL(Constants.APP_INDEX_URL_DEV)
} else {
await mainWindow.loadFile(Constants.APP_INDEX_URL_PROD)
}

// Initialize IPC Communication
IPCs.initialize(mainWindow)

return mainWindow
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ app.on('ready', async () => {
}
macOSDisableDefaultMenuItem()

mainWindow = createMainWindow(mainWindow)
mainWindow = await createMainWindow(mainWindow)
})

app.on('activate', () => {
app.on('activate', async () => {
if (!mainWindow) {
mainWindow = createMainWindow(mainWindow)
mainWindow = await createMainWindow(mainWindow)
}
})

Expand Down

0 comments on commit e9e9f87

Please sign in to comment.