mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 00:56:06 +00:00
limit depth of tab de-closer history
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user