mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 05:54:57 +00:00
fixed #6373 - allow disabling dynamic title on saved layouts
This commit is contained in:
@@ -211,6 +211,11 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
||||
/** @hidden */
|
||||
_allFocusMode = false
|
||||
|
||||
/**
|
||||
* Disables display of dynamic window/tab title provided by the shell
|
||||
*/
|
||||
disableDynamicTitle = false
|
||||
|
||||
/** @hidden */
|
||||
private focusedTab: BaseTabComponent|null = null
|
||||
private maximizedTab: BaseTabComponent|null = null
|
||||
@@ -748,6 +753,9 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
||||
}
|
||||
|
||||
private updateTitle (): void {
|
||||
if (this.disableDynamicTitle) {
|
||||
return
|
||||
}
|
||||
this.setTitle([...new Set(this.getAllTabs().map(x => x.title))].join(' | '))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user