Commit 8b2b0fcb authored by Grandschtroumpf's avatar Grandschtroumpf Committed by yann300

remove provider from event 'currentFileChanged'

parent 28f8da2a
......@@ -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
......
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