fix: check if single note is already selected before selecting

This commit is contained in:
Antonella Sgarlatta
2021-05-10 17:01:37 -03:00
parent df5327e638
commit 2f77985927

View File

@@ -129,7 +129,10 @@ export class NotesState {
} else if (this.io.activeModifiers.has(KeyboardModifier.Shift)) {
await this.selectNotesRange(note);
} else {
if (await this.application.authorizeNoteAccess(note)) {
if (
!this.selectedNotes[note.uuid] &&
(await this.application.authorizeNoteAccess(note))
) {
this.selectedNotes = {
[note.uuid]: note,
};