make sure to wait before continuing

pull/5370/head
yann300 4 years ago
parent a38e8fbcb9
commit f1822f1bec
  1. 6
      apps/remix-ide/src/remixAppManager.js

@ -34,6 +34,7 @@ export class RemixAppManager extends PluginManager {
async canDeactivatePlugin (from, to) {
console.log('canDeactivatePlugin', from, to)
if (requiredModules.includes(name)) return false
return from.name === 'manager'
}
@ -84,11 +85,6 @@ export class RemixAppManager extends PluginManager {
this.event.emit('ensureDeactivated', apiName)
}
deactivatePlugin (name) {
if (requiredModules.includes(name)) return
super.deactivatePlugin(name)
}
isRequired (name) {
return requiredModules.includes(name)
}

Loading…
Cancel
Save