use async await

This commit is contained in:
SrGooglo 2024-03-25 08:16:44 +01:00
parent 3b7d37ba7f
commit e8bb844df0

View File

@ -65,17 +65,17 @@ class ElectronApp {
//await this.pkgManager.uninstall(manifest_id) //await this.pkgManager.uninstall(manifest_id)
await this.pkgManager.install(pkg) await this.pkgManager.install(pkg)
}, },
"pkg:cancel_install": (event, manifest_id) => { "pkg:cancel_install": async (event, manifest_id) => {
this.pkgManager.uninstall(manifest_id) return await this.pkgManager.uninstall(manifest_id)
}, },
"pkg:uninstall": (event, ...args) => { "pkg:uninstall": async (event, ...args) => {
this.pkgManager.uninstall(...args) return await this.pkgManager.uninstall(...args)
}, },
"pkg:execute": (event, ...args) => { "pkg:execute": async (event, ...args) => {
this.pkgManager.execute(...args) return await this.pkgManager.execute(...args)
}, },
"pkg:open": (event, manifest_id) => { "pkg:open": async (event, manifest_id) => {
this.pkgManager.open(manifest_id) return await this.pkgManager.open(manifest_id)
}, },
"updater:check": () => { "updater:check": () => {
autoUpdater.checkForUpdates() autoUpdater.checkForUpdates()