Commit d17cb0a6 authored by lianahus's avatar lianahus Committed by Liana Husikyan

Unit Testing: added unregister on deactivation

parent 1ba72b05
...@@ -53,6 +53,12 @@ module.exports = class TestTab extends ViewPlugin { ...@@ -53,6 +53,12 @@ module.exports = class TestTab extends ViewPlugin {
this.listenToEvents() this.listenToEvents()
} }
onDeactivation () {
this.off('filePanel', 'newTestFileCreated')
this.off('filePanel', 'setWorkspace')
this.fileManager.events.removeListener('currentFileChanged', this.updateForNewCurrent)
}
listenToEvents () { listenToEvents () {
this.on('filePanel', 'newTestFileCreated', async file => { this.on('filePanel', 'newTestFileCreated', async file => {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment