pull/2464/head
Aniket-Engg 3 years ago
parent 61e13d9ca2
commit 4580757195
  1. 15
      apps/remix-ide/src/app/editor/editor.js

@ -141,12 +141,6 @@ class Editor extends Plugin {
this.on('sidePanel', 'pluginDisabled', (name) => {
this.clearAllDecorationsFor(name)
})
this.on('fileManager', 'fileClosed', (name) => {
if (name === this.currentFile) {
this.currentFile = null
this.renderComponent()
}
})
this.on('theme', 'themeLoaded', (theme) => {
this.currentThemeType = theme.quality
this.renderComponent()
@ -171,6 +165,15 @@ class Editor extends Plugin {
}
}
}
if (name === this.currentFile) {
this.currentFile = name
this.renderComponent()
}
})
this.on('fileManager', 'noFileSelected', async () => {
this.currentFile = null
this.renderComponent()
})
try {
this.currentThemeType = (await this.call('theme', 'currentTheme')).quality

Loading…
Cancel
Save