Desktop: Fixes #16628: Prevent note being selected in the primary window when a secondary window is closed when it's not in focus (#16629)

This commit is contained in:
mrjo118 authored and GitHub committed 2026-09-25 12:02:35 +01:00
1 parent 4978154dc1
commit c32c50fbe9
2 files changed
+33 -1

No files matched your search

+4
View File
@@ -278,6 +278,10 @@ export default class BaseApplication {
}
}
// The active window may have changed while the note query was running. Applying this
// result to another window would replace its note list and selection with stale state.
if (this.store().getState().windowId !== state.windowId) return;
this.store().dispatch({
type: 'SET_HIGHLIGHTED',
words: highlightedWords,