make sure plugins deactivated if modal not validated

pull/946/head
yann300 4 years ago
parent 8d7235224a
commit 2e9ea9e574
  1. 6
      apps/remix-ide/src/app/files/remixd-handle.js

@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin {
deactivate () { deactivate () {
if (super.socket) super.deactivate() if (super.socket) super.deactivate()
this.call('manager', 'deactivatePlugin', 'git') this.appManager.deactivatePlugin('git') // plugin call doesn't work..
this.locahostProvider.close((error) => { this.locahostProvider.close((error) => {
if (error) console.log(error) if (error) console.log(error)
}) })
@ -49,8 +49,8 @@ export class RemixdHandle extends WebsocketPlugin {
} }
async canceled () { async canceled () {
this.call('manager', 'deactivatePlugin', 'git') await this.appManager.deactivatePlugin('git') // plugin call doesn't work..
this.call('manager', 'deactivatePlugin', 'remixd') await this.appManager.deactivatePlugin('remixd')
} }
/** /**

Loading…
Cancel
Save