fix: check if single note is already selected before selecting
This commit is contained in:
@@ -129,7 +129,10 @@ export class NotesState {
|
|||||||
} else if (this.io.activeModifiers.has(KeyboardModifier.Shift)) {
|
} else if (this.io.activeModifiers.has(KeyboardModifier.Shift)) {
|
||||||
await this.selectNotesRange(note);
|
await this.selectNotesRange(note);
|
||||||
} else {
|
} else {
|
||||||
if (await this.application.authorizeNoteAccess(note)) {
|
if (
|
||||||
|
!this.selectedNotes[note.uuid] &&
|
||||||
|
(await this.application.authorizeNoteAccess(note))
|
||||||
|
) {
|
||||||
this.selectedNotes = {
|
this.selectedNotes = {
|
||||||
[note.uuid]: note,
|
[note.uuid]: note,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user