fix(client): don't save note tab context for read-only database

This commit is contained in:
FliegendeWurst 2025-05-21 19:54:45 +02:00
parent 5acdb698bb
commit 50d045b70e

View File

@ -44,6 +44,9 @@ export default class TabManager extends Component {
if (!appContext.isMainWindow) {
return;
}
if (options.is("databaseReadonly")) {
return;
}
const openNoteContexts = this.noteContexts
.map((nc) => nc.getPojoState())