From 74f91b7cb357faecec2f0297cef950cdae9331b7 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 27 Jul 2021 20:40:08 +0200 Subject: [PATCH] don't remember tabs if recovery is disabled --- tabby-core/src/services/tabRecovery.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-core/src/services/tabRecovery.service.ts b/tabby-core/src/services/tabRecovery.service.ts index 622f1452..4dd12ea9 100644 --- a/tabby-core/src/services/tabRecovery.service.ts +++ b/tabby-core/src/services/tabRecovery.service.ts @@ -20,7 +20,7 @@ export class TabRecoveryService { } async saveTabs (tabs: BaseTabComponent[]): Promise { - if (!this.enabled) { + if (!this.enabled || !this.config.store.recoverTabs) { return } window.localStorage.tabsRecovery = JSON.stringify(