Commit 714165a2 authored by LianaHus's avatar LianaHus

fixed next active tab

parent 07aff8e3
......@@ -20,6 +20,7 @@ export class TabProxy {
fileManager.events.on('fileClosed', (name) => {
this.removeTab(name)
this.switchPreviousTab()
})
fileManager.events.on('currentFileChanged', (file) => {
......@@ -104,7 +105,6 @@ export class TabProxy {
const handlers = Object.keys(this._handlers)
let i = handlers.indexOf(active)
if (i >= 0) {
i = handlers[i - 1] ? i - 1 : handlers.length - 1
this.switchTab(handlers[i])
}
}
......
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