Skip to content

Commit

Permalink
feat(index): 解决退出Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aitexiaoy committed Jul 3, 2019
1 parent c65429a commit e01eb70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ function ipcMainInit() {

ipcMain.on('btn', (event, data) => {
if (data.type === 'quit') {
// 窗口设置了closeable为false后不能退出程序,手动再设置一下
mainWindow.setClosable(true)
app.quit()
// eslint-disable-next-line no-empty
} else if (data.type === 'searchKey') {
Expand Down

0 comments on commit e01eb70

Please sign in to comment.