From 2e9ea9e574105bb29bd807025ad3e8b128eb4a8e Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 8 Mar 2021 13:39:35 +0100 Subject: [PATCH] make sure plugins deactivated if modal not validated --- apps/remix-ide/src/app/files/remixd-handle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/files/remixd-handle.js b/apps/remix-ide/src/app/files/remixd-handle.js index eeb9b30073..ddebac6bf8 100644 --- a/apps/remix-ide/src/app/files/remixd-handle.js +++ b/apps/remix-ide/src/app/files/remixd-handle.js @@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin { deactivate () { if (super.socket) super.deactivate() - this.call('manager', 'deactivatePlugin', 'git') + this.appManager.deactivatePlugin('git') // plugin call doesn't work.. this.locahostProvider.close((error) => { if (error) console.log(error) }) @@ -49,8 +49,8 @@ export class RemixdHandle extends WebsocketPlugin { } async canceled () { - this.call('manager', 'deactivatePlugin', 'git') - this.call('manager', 'deactivatePlugin', 'remixd') + await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. + await this.appManager.deactivatePlugin('remixd') } /**