chore: clear multiple selection if selected items are not supposed to be in the current view anymore
This commit is contained in:
@@ -439,11 +439,7 @@ export class ItemListController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private shouldLeaveSelectionUnchanged = (activeController: NoteViewController | FileViewController | undefined) => {
|
private shouldLeaveSelectionUnchanged = (activeController: NoteViewController | FileViewController | undefined) => {
|
||||||
const hasMultipleItemsSelected = this.selectedItemsCount >= 2
|
return activeController instanceof NoteViewController && activeController.isTemplateNote
|
||||||
|
|
||||||
return (
|
|
||||||
hasMultipleItemsSelected || (activeController instanceof NoteViewController && activeController.isTemplateNote)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user