mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Merge branch 'master' into next61
# Conflicts: # src/public/app/widgets/note_tree.js
This commit is contained in:
commit
1f3b6feaff
@ -980,6 +980,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
this.activityDetected();
|
||||
|
||||
const oldActiveNode = this.getActiveNode();
|
||||
|
||||
const newActiveNode = this.noteContext?.notePath
|
||||
&& (!treeService.isNotePathInHiddenSubtree(this.noteContext.notePath) || await hoistedNoteService.isHoistedInHiddenSubtree())
|
||||
&& await this.getNodeFromPath(this.noteContext.notePath);
|
||||
|
||||
if (newActiveNode !== oldActiveNode) {
|
||||
let oldActiveNodeFocused = false;
|
||||
|
||||
if (oldActiveNode) {
|
||||
@ -989,14 +995,6 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
oldActiveNode.setFocus(false);
|
||||
}
|
||||
|
||||
if (this.noteContext?.notePath
|
||||
&& (
|
||||
!treeService.isNotePathInHiddenSubtree(this.noteContext.notePath)
|
||||
|| await hoistedNoteService.isHoistedInHiddenSubtree()
|
||||
)
|
||||
) {
|
||||
const newActiveNode = await this.getNodeFromPath(this.noteContext.notePath);
|
||||
|
||||
if (newActiveNode) {
|
||||
if (!newActiveNode.isVisible()) {
|
||||
await this.expandToNote(this.noteContext.notePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user