fix: Prevents note list from switching to a different note when opening a note not in the current folder from the command palette (#2986)

This commit is contained in:
Antonella Sgarlatta
2026-02-24 13:02:53 -03:00
committed by GitHub
parent ec7d3970d0
commit ff58de30fb

View File

@@ -512,6 +512,10 @@ export class ItemListController
}
private shouldSelectNextItemOrCreateNewNote = (activeItem: SNNote | FileItem | undefined) => {
if (activeItem?.uuid === this.keepActiveItemOpenUuid) {
return false
}
const selectedView = this.navigationController.selected
const isActiveItemTrashed = activeItem?.trashed