fixed next active tab

pull/1/head
LianaHus 5 years ago
parent 07aff8e3cb
commit 714165a287
  1. 2
      src/app/panels/tab-proxy.js

@ -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])
}
}

Loading…
Cancel
Save