chore(window): initialize closed time of openNoteContents to 0
Some checks are pending
Checks / main (push) Waiting to run

This commit is contained in:
SiriusXT 2026-01-01 16:09:03 +08:00
parent 1078107776
commit 79e2c97882

View File

@ -138,7 +138,7 @@ export default class TabManager extends Component {
// Save window contents
if (currentWin) {
currentWin.createdAt = Date.now();
currentWin.closedAt = null;
currentWin.closedAt = 0;
currentWin.contexts = filteredNoteContexts;
} else {
// Filter out the oldest entry (excluding the main window)