From 7551201796e45e7b5269b107937afba3f79daa3f Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 14 Aug 2021 23:36:41 +0200 Subject: [PATCH] fixed recovery of custom tab titles - fixes #4406 --- tabby-core/src/components/tabHeader.component.ts | 1 + tabby-core/src/services/tabRecovery.service.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tabby-core/src/components/tabHeader.component.ts b/tabby-core/src/components/tabHeader.component.ts index 20523a9b..7a650321 100644 --- a/tabby-core/src/components/tabHeader.component.ts +++ b/tabby-core/src/components/tabHeader.component.ts @@ -60,6 +60,7 @@ export class TabHeaderComponent extends BaseComponent { modal.result.then(result => { this.tab.setTitle(result) this.tab.customTitle = result + this.app.emitTabsChanged() }).catch(() => null) } diff --git a/tabby-core/src/services/tabRecovery.service.ts b/tabby-core/src/services/tabRecovery.service.ts index 4f2ec154..4d674643 100644 --- a/tabby-core/src/services/tabRecovery.service.ts +++ b/tabby-core/src/services/tabRecovery.service.ts @@ -34,6 +34,7 @@ export class TabRecoveryService { const token = await tab.getRecoveryToken() if (token) { token.tabTitle = tab.title + token.tabCustomTitle = tab.customTitle if (tab.color) { token.tabColor = tab.color } @@ -55,6 +56,7 @@ export class TabRecoveryService { tab.inputs = tab.inputs ?? {} tab.inputs.color = token.tabColor ?? null tab.inputs.title = token.tabTitle || '' + tab.inputs.customTitle = token.tabCustomTitle || '' tab.inputs.disableDynamicTitle = token.disableDynamicTitle return tab } catch (error) {