mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
fix(client): don't save note tab context for read-only database
This commit is contained in:
parent
5acdb698bb
commit
50d045b70e
@ -44,6 +44,9 @@ export default class TabManager extends Component {
|
|||||||
if (!appContext.isMainWindow) {
|
if (!appContext.isMainWindow) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (options.is("databaseReadonly")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const openNoteContexts = this.noteContexts
|
const openNoteContexts = this.noteContexts
|
||||||
.map((nc) => nc.getPojoState())
|
.map((nc) => nc.getPojoState())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user