This commit is contained in:
SrGooglo 2024-03-25 09:28:28 +01:00
parent 7fec0f1f7d
commit 8bb6b1daec

View File

@ -68,7 +68,7 @@ export class WithContext extends React.Component {
const packages = await ipc.exec("pkg:list")
for (const event in this.ipcEvents) {
ipc.on(event, this.ipcEvents[event])
ipc.exclusiveListen(event, this.ipcEvents[event])
}
this.setState({
@ -79,16 +79,6 @@ export class WithContext extends React.Component {
})
}
componentWillUnmount() {
for (const event in this.ipcEvents) {
ipc.off(event, this.ipcEvents[event])
}
}
install = async (manifest) => {
return await app.invokeInstall(manifest)
}
render() {
return <Context.Provider
value={{