Select the first tab automatically when opening a repository

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent a86aaef510
commit 2e95691318

@ -45,6 +45,8 @@ export class CoreComponent {
this.appState = state;
if (this.appState.tabs.value.length === 0) {
this.addTab();
} else {
this.tabGroup.selectedIndex = 1;
}
state.tabs.subscribe(tabs => {
this.tabs = tabs;

Loading…
Cancel
Save