Commit 59cb0394 authored by yann300's avatar yann300

check upstream for file changed

parent a74b18e4
......@@ -39,6 +39,12 @@ class EditorPanel {
We listen here on event from the tab component to display / hide the editor and mainpanel
depending on the content that should be displayed
*/
self._deps.fileManager.event.register('currentFileChanged', (file) => {
// we check upstream for "fileChanged"
self._view.editor.style.display = 'block'
self._components.contextView.show()
self._view.mainPanel.style.display = 'none'
})
self.tabProxy.event.on('switchFile', (file) => {
self._view.editor.style.display = 'block'
self._components.contextView.show()
......
......@@ -37,7 +37,7 @@ export class TabProxy {
this.event.emit('closeFile', file)
})
}
this.active(file)
this.active(file) // this put the css class "active"
})
fileManager.event.register('fileRenamed', (oldName, newName) => {
......
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