Skip to content

Commit

Permalink
fixed #8313 - recover tab icons and colors ealier during start
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed May 15, 2023
1 parent 5075c83 commit a494d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabby-core/src/components/splitTab.component.ts
Expand Up @@ -787,7 +787,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}

get icon (): string|null {
return this.getFocusedTab()?.icon ?? null
return this.getFocusedTab()?.icon ?? this.getAllTabs()[0]?.icon ?? null
}

set icon (icon: string|null) {
Expand All @@ -797,7 +797,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}

get color (): string|null {
return this.getFocusedTab()?.color ?? null
return this.getFocusedTab()?.color ?? this.getAllTabs()[0]?.color ?? null
}

set color (color: string|null) {
Expand Down

0 comments on commit a494d9c

Please sign in to comment.