fix note switching in current tab

This commit is contained in:
zadam
2020-01-24 21:15:40 +01:00
parent ba500a3a80
commit 7d9b720ea8
5 changed files with 11 additions and 27 deletions

View File

@@ -138,15 +138,11 @@ class AppContext {
}
}
activateNote(notePath) {
const activeTabContext = this.getActiveTabContext();
console.log("Setting activeTabContext to " + notePath);
activeTabContext.setNote(notePath);
this._setTitleBar();
this._setCurrentNotePathToHash();
tabNoteSwitchedListener({tabId}) {
if (tabId === this.activeTabId) {
this._setTitleBar();
this._setCurrentNotePathToHash();
}
}
_setCurrentNotePathToHash() {