1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 10:42:35 +03:00

don't remember tabs if recovery is disabled

This commit is contained in:
Eugene Pankov 2021-07-27 20:40:08 +02:00
parent 7bcf3dbabe
commit 74f91b7cb3
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

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