From 69fba5efdbb11ff9b0f2b38fe6cd406c0f41c00b 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) => {