From db4f45d9f576193e3eea3aadea4f614082828da3 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Tue, 15 Aug 2017 11:58:06 +0200 Subject: [PATCH] First quick check if lastEmittedState and appState are different Resolves #10195 Auditors: @bridiver @bbondy Test Plan: - open two windows - add bookmark in one - bookmark should appear in both bookmark toolbars --- js/stores/appStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/stores/appStore.js b/js/stores/appStore.js index da1f15811a2..5f8a1e4272c 100644 --- a/js/stores/appStore.js +++ b/js/stores/appStore.js @@ -59,7 +59,7 @@ class AppStore extends EventEmitter { } emitChanges () { - if (this.lastEmittedState) { + if (this.lastEmittedState && this.lastEmittedState !== appState) { const d = diff(this.lastEmittedState, appState) if (!d.isEmpty()) { BrowserWindow.getAllWindows().forEach((wnd) => {