[MM-38570] Fixed the keyboard shortcuts for switching tabs when some tabs are closed (#1739)
This commit is contained in:
@@ -353,7 +353,7 @@ function initializeViewManager() {
|
||||
status.viewManager = new ViewManager(status.config, status.mainWindow);
|
||||
status.viewManager.load();
|
||||
status.viewManager.showInitial();
|
||||
status.currentServerName = status.config.teams.find((team) => team.order === 0)?.name;
|
||||
status.currentServerName = (status.config.teams.find((team) => team.order === status.config?.lastActiveTeam) || status.config.teams.find((team) => team.order === 0))?.name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user