Przeglądaj źródła

don't remember tabs if recovery is disabled

Eugene Pankov 4 lat temu
rodzic
commit
74f91b7cb3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tabby-core/src/services/tabRecovery.service.ts

+ 1 - 1
tabby-core/src/services/tabRecovery.service.ts

@@ -20,7 +20,7 @@ export class TabRecoveryService {
     }
     }
 
 
     async saveTabs (tabs: BaseTabComponent[]): Promise<void> {
     async saveTabs (tabs: BaseTabComponent[]): Promise<void> {
-        if (!this.enabled) {
+        if (!this.enabled || !this.config.store.recoverTabs) {
             return
             return
         }
         }
         window.localStorage.tabsRecovery = JSON.stringify(
         window.localStorage.tabsRecovery = JSON.stringify(