diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 47dc4a5963..81b1fda533 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -285,7 +285,7 @@ function fileExplorer (localRegistry, files, menuItems) { const removeFile = await fileManager.remove(key) if (!removeFile) { - tooltip(`failed to remove file ${key}.`) + tooltip(`Failed to remove file ${key}.`) } else { const { type } = fileManager.currentFileProvider() self.updatePath(type) diff --git a/src/app/panels/main-view.js b/src/app/panels/main-view.js index 6e9e2a4f54..bc12ffd6f6 100644 --- a/src/app/panels/main-view.js +++ b/src/app/panels/main-view.js @@ -61,7 +61,7 @@ export class MainView { self._view.mainPanel.style.display = 'none' self._components.contextView.show() }) - self.tabProxy.event.on('switchFile', (file) => { + self.tabProxy.event.on('openFile', (file) => { self._view.editor.style.display = 'block' self._view.mainPanel.style.display = 'none' self._components.contextView.show() diff --git a/src/app/panels/tab-proxy.js b/src/app/panels/tab-proxy.js index 2b202d2d00..019283d09c 100644 --- a/src/app/panels/tab-proxy.js +++ b/src/app/panels/tab-proxy.js @@ -35,7 +35,7 @@ export class TabProxy { } this.addTab(file, '', () => { this.fileManager.open(file) - this.event.emit('switchFile', file) + this.event.emit('openFile', file) }, () => { this.fileManager.closeFile(file) @@ -48,7 +48,7 @@ export class TabProxy { // should change the tab title too this.addTab(newName, '', () => { this.fileManager.open(newName) - this.event.emit('switchFile', newName) + this.event.emit('openFile', newName) }, () => { this.fileManager.closeFile(newName)