Commit b109c284 authored by aniket-engg's avatar aniket-engg

reset staticAnalysis after deactivation

parent 64086a20
......@@ -28,6 +28,9 @@ class AnalysisTab extends ViewPlugin {
}
render () {
const listOfPlugins = localStorage.getItem('workspace')
// Reset state if plugin is deactivated
if (!listOfPlugins.includes('solidityStaticAnalysis')) this.staticanalysis = null
if (!this.staticanalysis) this.staticanalysis = new StaticAnalysis(this.registry, this)
this.staticanalysis.event.register('staticAnaysisWarning', (count) => {
if (count > 0) {
......
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