mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
wip
This commit is contained in:
parent
8d45662bee
commit
2d38706ba8
@ -831,11 +831,4 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
|
|
||||||
noteCreateService.duplicateNote(noteId, branch.parentNoteId);
|
noteCreateService.duplicateNote(noteId, branch.parentNoteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
async tabNoteSwitchedEvent({tabContext, notePath}) {
|
|
||||||
// this causes unnecessary scrolling to active note
|
|
||||||
if (tabContext.isActive()) {
|
|
||||||
super.tabNoteSwitchedEvent({tabContext, notePath});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -48,7 +48,7 @@ export default class TabAwareWidget extends BasicWidget {
|
|||||||
|
|
||||||
async tabNoteSwitchedEvent({tabContext, notePath}) {
|
async tabNoteSwitchedEvent({tabContext, notePath}) {
|
||||||
// if notePath does not match then the tabContext has been switched to another note in the mean time
|
// if notePath does not match then the tabContext has been switched to another note in the mean time
|
||||||
if (tabContext.notePath === notePath) {
|
if (tabContext.isActive() && tabContext.notePath === notePath) {
|
||||||
await this.noteSwitched();
|
await this.noteSwitched();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user