remove provider from event 'currentFileChanged'

pull/3094/head
Grandschtroumpf 6 years ago committed by yann300
parent ad68b8233c
commit bc10577bdb
  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