mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +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 })
|
const token = await this.tabRecovery.getFullRecoveryToken(tab, { includeState: true })
|
||||||
if (token) {
|
if (token) {
|
||||||
this.closedTabsStack.push(token)
|
this.closedTabsStack.push(token)
|
||||||
|
this.closedTabsStack = this.closedTabsStack.slice(-5)
|
||||||
}
|
}
|
||||||
tab.destroy()
|
tab.destroy()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user