mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
Add update menu item
This commit is contained in:
committed by
Junyoung Choi
parent
8958e67fcf
commit
85d09b3b3d
@@ -121,4 +121,7 @@ app.on('ready', function() {
|
||||
ipcServer.server.start()
|
||||
})
|
||||
|
||||
module.exports = app
|
||||
module.exports = {
|
||||
app,
|
||||
checkUpdate
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ const BrowserWindow = electron.BrowserWindow
|
||||
const shell = electron.shell
|
||||
const ipc = electron.ipcMain
|
||||
const mainWindow = require('./main-window')
|
||||
const { checkUpdate } = require('./main-app')
|
||||
const os = require('os')
|
||||
|
||||
const macOS = process.platform === 'darwin'
|
||||
@@ -178,6 +179,18 @@ const file = {
|
||||
mainWindow.webContents.send('list:isMarkdownNote', 'print')
|
||||
mainWindow.webContents.send('print')
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Update',
|
||||
click() {
|
||||
checkUpdate()
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user