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 () {