Show main window before ipcReady
It doesn't flicker anymore if we remove this option, and the app feels no slower.
This commit is contained in:
@@ -25,13 +25,12 @@ var vlcProcess
|
||||
function init () {
|
||||
var ipc = electron.ipcMain
|
||||
|
||||
ipc.on('ipcReady', function (e) {
|
||||
windows.main.show()
|
||||
ipc.once('ipcReady', function (e) {
|
||||
app.ipcReady = true
|
||||
app.emit('ipcReady')
|
||||
})
|
||||
|
||||
ipc.on('ipcReadyWebTorrent', function (e) {
|
||||
ipc.once('ipcReadyWebTorrent', function (e) {
|
||||
app.ipcReadyWebTorrent = true
|
||||
log('sending %d queued messages from the main win to the webtorrent window',
|
||||
messageQueueMainToWebTorrent.length)
|
||||
|
||||
Reference in New Issue
Block a user