From a17974369a1a6d38573cfef52e26f284cd990f81 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 55313780011..6a45e84c168 100644 --- a/js/stores/appStore.js +++ b/js/stores/appStore.js @@ -78,7 +78,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) => {