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:
4
main.js
4
main.js
@@ -274,8 +274,8 @@ app.on('ready', function () {
|
||||
mainWindow.hide()
|
||||
})
|
||||
|
||||
mainWindow.webContents.on('did-finish-load', function () {
|
||||
if (finderProcess == null && process.platform === 'darwin') {
|
||||
console.log('fired only once ')
|
||||
spawnFinder()
|
||||
} else {
|
||||
finderWindow = require('./atom-lib/finder-window')
|
||||
@@ -294,7 +294,5 @@ app.on('ready', function () {
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
require('./hotkey')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user