Skip to content

Commit

Permalink
fix(electron): load settings before connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 27, 2024
1 parent 2ce33ff commit 7957f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/src/main/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ export default class App {
ipcMain.on('portRequest', async ({ sender }) => {
const { port1, port2 } = new MessageChannelMain()
await torrentLoad
this.webtorrentWindow.webContents.postMessage('port', null, [port1])
this.webtorrentWindow.webContents.postMessage('player', store.get('player'))
this.webtorrentWindow.webContents.postMessage('torrentPath', store.get('torrentPath'))
this.webtorrentWindow.webContents.postMessage('port', null, [port1])
sender.postMessage('port', null, [port2])
})

Expand Down

0 comments on commit 7957f2f

Please sign in to comment.