[MM-38570] Fixed the keyboard shortcuts for switching tabs when some tabs are closed (#1739)

This commit is contained in:
Devin Binnie
2021-09-20 09:14:42 -04:00
committed by GitHub
parent c12c9fb2e4
commit fc9bf1e4a3
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ function createTemplate(config: Config) {
},
});
if (WindowManager.getCurrentTeamName() === team.name) {
team.tabs.slice(0, 9).sort((teamA, teamB) => teamA.order - teamB.order).forEach((tab, i) => {
team.tabs.filter((tab) => tab.isOpen).slice(0, 9).sort((teamA, teamB) => teamA.order - teamB.order).forEach((tab, i) => {
items.push({
label: ` ${getTabDisplayName(tab.name as TabType)}`,
accelerator: `CmdOrCtrl+${i + 1}`,