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:
committed by
GitHub
parent
ec7d3970d0
commit
ff58de30fb
@@ -512,6 +512,10 @@ export class ItemListController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private shouldSelectNextItemOrCreateNewNote = (activeItem: SNNote | FileItem | undefined) => {
|
private shouldSelectNextItemOrCreateNewNote = (activeItem: SNNote | FileItem | undefined) => {
|
||||||
|
if (activeItem?.uuid === this.keepActiveItemOpenUuid) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
const selectedView = this.navigationController.selected
|
const selectedView = this.navigationController.selected
|
||||||
|
|
||||||
const isActiveItemTrashed = activeItem?.trashed
|
const isActiveItemTrashed = activeItem?.trashed
|
||||||
|
|||||||
Reference in New Issue
Block a user