remove provider from event 'currentFileChanged'

pull/1/head
Grandschtroumpf 6 years ago committed by yann300
parent 28f8da2a38
commit 8b2b0fcb52
  1. 3
      src/app/files/file-explorer.js

@ -200,7 +200,8 @@ function fileExplorer (localRegistry, files) {
}
// register to main app, trigger when the current file in the editor changed
self._deps.fileManager.event.register('currentFileChanged', (newFile, explorer) => {
self._deps.fileManager.events.on('currentFileChanged', (newFile) => {
const explorer = self._deps.fileManager.fileProviderOf(newFile)
if (self.focusElement && (!explorer || explorer.type !== files.type) && self.focusPath !== newFile) {
self.focusElement.classList.remove('bg-primary')
self.focusElement = null

Loading…
Cancel
Save