mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-01 16:59:54 +00:00
limit depth of tab de-closer history
This commit is contained in:
parent
17c93aa3fc
commit
b42314b29e
@ -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…
x
Reference in New Issue
Block a user