remove on deactivation

pull/5370/head
bunsenstraat 4 years ago committed by ioedeveloper
parent d1bd4d26e3
commit 5a8f413370
  1. 5
      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 () {

Loading…
Cancel
Save