keep "disable dynamic title" while duplicating or restoring a tab - fixes #4334

This commit is contained in:
Eugene Pankov
2021-08-04 19:51:08 +02:00
parent 28b84e38ca
commit fa70447223
5 changed files with 11 additions and 9 deletions

View File

@@ -98,9 +98,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
enablePassthrough = true
/**
* Enables receiving dynamic window/tab title provided by the shell
* Disables display of dynamic window/tab title provided by the shell
*/
enableDynamicTitle = true
disableDynamicTitle = false
alternateScreenActive = false
@@ -586,7 +586,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
}
this.termContainerSubscriptions.subscribe(this.frontend.title$, title => this.zone.run(() => {
if (this.enableDynamicTitle) {
if (!this.disableDynamicTitle) {
this.setTitle(title)
}
}))