fix: mantain multiple note selection when streaming items
This commit is contained in:
@@ -273,6 +273,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
|
|||||||
* we dont need to reload display options */
|
* we dont need to reload display options */
|
||||||
await this.reloadNotes();
|
await this.reloadNotes();
|
||||||
const activeNote = this.activeEditorNote;
|
const activeNote = this.activeEditorNote;
|
||||||
|
if (this.application.getAppState().notes.selectedNotesCount < 2) {
|
||||||
if (activeNote) {
|
if (activeNote) {
|
||||||
const discarded = activeNote.deleted || activeNote.trashed;
|
const discarded = activeNote.deleted || activeNote.trashed;
|
||||||
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
|
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
|
||||||
@@ -284,6 +285,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
|
|||||||
this.selectFirstNote();
|
this.selectFirstNote();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
this.removeObservers.push(this.application.streamItems(
|
this.removeObservers.push(this.application.streamItems(
|
||||||
|
|||||||
Reference in New Issue
Block a user