refactored TabContext => NoteContext

This commit is contained in:
zadam
2021-05-22 12:35:41 +02:00
parent 274cf7312c
commit 79a85a0aa7
60 changed files with 187 additions and 187 deletions

View File

@@ -85,11 +85,11 @@ function goToLink(e) {
const noteContext = ntxId
? appContext.tabManager.getNoteContextById(ntxId)
: appContext.tabManager.getActiveNoteContext();
: appContext.tabManager.getActiveContext();
noteContext.setNote(notePath).then(() => {
if (noteContext !== appContext.tabManager.getActiveNoteContext()) {
appContext.tabManager.activateTab(noteContext.ntxId);
if (noteContext !== appContext.tabManager.getActiveContext()) {
appContext.tabManager.activateNoteContext(noteContext.ntxId);
}
});
}