mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
limit depth of tab de-closer history
This commit is contained in:
parent
17c93aa3fc
commit
b42314b29e
1 changed files with 1 additions and 0 deletions
|
@ -321,6 +321,7 @@ export class AppService {
|
|||
const token = await this.tabRecovery.getFullRecoveryToken(tab, { includeState: true })
|
||||
if (token) {
|
||||
this.closedTabsStack.push(token)
|
||||
this.closedTabsStack = this.closedTabsStack.slice(-5)
|
||||
}
|
||||
tab.destroy()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue