1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
This commit is contained in:
Dick Choi
2016-08-14 01:34:32 +09:00
parent 6bb78d3216
commit 2cbe07b373
34 changed files with 1482 additions and 765 deletions

View File

@@ -3,19 +3,8 @@ const ipc = electron.ipcMain
const Menu = electron.Menu
const globalShortcut = electron.globalShortcut
const mainWindow = require('./main-window')
// const nodeIpc = require('@rokt33r/node-ipc')
function emitToFinder (type, data) {
var payload = {
type: type,
data: data
}
// nodeIpc.server.broadcast('message', payload)
}
function toggleFinder () {
emitToFinder('open-finder')
mainWindow.webContents.send('open-finder', {})
}
@@ -33,11 +22,10 @@ function toggleMain () {
mainWindow.minimize()
mainWindow.restore()
}
mainWindow.webContents.send('top-focus-search')
}
}
ipc.on('CONFIG_RENEW', (e, payload) => {
ipc.on('config-renew', (e, payload) => {
globalShortcut.unregisterAll()
var { config } = payload