mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-04 18:39:54 +00:00
fixed #6373 - allow disabling dynamic title on saved layouts
This commit is contained in:
parent
96cd676109
commit
5f4a7c4d39
@ -211,6 +211,11 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
/** @hidden */
|
/** @hidden */
|
||||||
_allFocusMode = false
|
_allFocusMode = false
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disables display of dynamic window/tab title provided by the shell
|
||||||
|
*/
|
||||||
|
disableDynamicTitle = false
|
||||||
|
|
||||||
/** @hidden */
|
/** @hidden */
|
||||||
private focusedTab: BaseTabComponent|null = null
|
private focusedTab: BaseTabComponent|null = null
|
||||||
private maximizedTab: BaseTabComponent|null = null
|
private maximizedTab: BaseTabComponent|null = null
|
||||||
@ -748,6 +753,9 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
}
|
}
|
||||||
|
|
||||||
private updateTitle (): void {
|
private updateTitle (): void {
|
||||||
|
if (this.disableDynamicTitle) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.setTitle([...new Set(this.getAllTabs().map(x => x.title))].join(' | '))
|
this.setTitle([...new Set(this.getAllTabs().map(x => x.title))].join(' | '))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ export class EditProfileModalComponent<P extends Profile> {
|
|||||||
@ViewChild('placeholder', { read: ViewContainerRef }) placeholder: ViewContainerRef
|
@ViewChild('placeholder', { read: ViewContainerRef }) placeholder: ViewContainerRef
|
||||||
|
|
||||||
private _profile: Profile
|
private _profile: Profile
|
||||||
private settingsComponentInstance: ProfileSettingsComponent<P>
|
private settingsComponentInstance?: ProfileSettingsComponent<P>
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private injector: Injector,
|
private injector: Injector,
|
||||||
@ -87,7 +87,7 @@ export class EditProfileModalComponent<P extends Profile> {
|
|||||||
|
|
||||||
save () {
|
save () {
|
||||||
this.profile.group ||= undefined
|
this.profile.group ||= undefined
|
||||||
this.settingsComponentInstance.save?.()
|
this.settingsComponentInstance?.save?.()
|
||||||
this.profile.__cleanup()
|
this.profile.__cleanup()
|
||||||
this.modalInstance.close(this._profile)
|
this.modalInstance.close(this._profile)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user