From 13bee7ab9134e5d6f0d5b28234bb7c4c0402ee83 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Nov 2020 16:58:35 +0100 Subject: [PATCH] fix canDeactivatePlugin implementation --- apps/remix-ide/src/remixAppManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index d40b6a32e8..dccb3cbdc0 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -16,7 +16,7 @@ export function isNative (name) { } export function canActivate (name) { - return ['manager', 'debugger', 'ethdoc'].includes(name) + return ['ethdoc'].includes(name) || isNative(name) } export class RemixAppManager extends PluginManager { @@ -33,7 +33,7 @@ export class RemixAppManager extends PluginManager { } async canDeactivatePlugin (from, to) { - if (requiredModules.includes(name)) return false + if (requiredModules.includes(to.name)) return false return from.name === 'manager' }