feat ui: fix tabclosemanager state reset

This commit is contained in:
nick-delirium 2024-05-22 13:29:14 +02:00
parent 92353e4c49
commit bdcde733a9
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -7,6 +7,8 @@ export default class TabClosingManager extends ListWalker<{ tabId: string, time:
moveReady(t: number): Promise<string | null> {
if (t < this.currentTime) {
this.reset()
this.closedTabs = new Set()
return Promise.resolve(null)
}
this.currentTime = t
const msg = this.moveGetLast(t)