mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
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:
1 parent
4978154dc1
commit
c32c50fbe9
2 files changed
+33
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user