title fix

This commit is contained in:
Eugene
2026-09-11 22:42:35 +02:00
parent c9a7a54fac
commit a8ca837ca5
+2 -3
View File
@@ -238,9 +238,8 @@ export class AppService {
this._activeTab?.emitFocused()
this._activeTab?.emitVisibility(true)
})
if (this._activeTab) {
this.hostWindow.setTitle(this._activeTab.customTitle || this._activeTab.title)
}
const active = this._activeTab
this.hostWindow.setTitle(active ? active.customTitle || active.title : undefined)
}
getParentTab (tab: BaseTabComponent): SplitTabComponent|null {