From 5a8f413370f6cb927da4e009f4b92346ec55ab7b Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 24 Jun 2021 15:03:18 +0200 Subject: [PATCH] remove on deactivation --- apps/remix-ide/src/app/panels/file-panel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index 65df3fe7c2..90cde523d6 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -173,6 +173,9 @@ module.exports = class Filepanel extends ViewPlugin { } return } + + const self = this + this.appManager.on('manager', 'pluginDeactivated', self.removePluginActions.bind(this)) // insert example contracts if there are no files to show return new Promise((resolve, reject) => { this._deps.fileProviders.browser.resolveDirectory('/', async (error, filesList) => { @@ -196,8 +199,6 @@ module.exports = class Filepanel extends ViewPlugin { }) }) - const self = this - this.appManager.on('manager', 'pluginDeactivated', self.removePluginActions.bind(this)) } async createNewFile () {