mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
cleanup
This commit is contained in:
parent
7fec0f1f7d
commit
8bb6b1daec
@ -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={{
|
||||
|
Loading…
x
Reference in New Issue
Block a user