1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fix IPC bug: spawn 2 finder processes

This commit is contained in:
Rokt33r
2015-12-22 11:29:57 +09:00
parent 0cc52c2206
commit 91e60fa82b

View File

@@ -274,8 +274,8 @@ app.on('ready', function () {
mainWindow.hide() mainWindow.hide()
}) })
mainWindow.webContents.on('did-finish-load', function () {
if (finderProcess == null && process.platform === 'darwin') { if (finderProcess == null && process.platform === 'darwin') {
console.log('fired only once ')
spawnFinder() spawnFinder()
} else { } else {
finderWindow = require('./atom-lib/finder-window') finderWindow = require('./atom-lib/finder-window')
@@ -294,7 +294,5 @@ app.on('ready', function () {
} }
}) })
})
require('./hotkey') require('./hotkey')
}) })