mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix note switching in current tab
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user