Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10498 from NejcZdovc/hotfix/#10195-emittedState
Browse files Browse the repository at this point in the history
First quick check if lastEmittedState and appState are different
  • Loading branch information
NejcZdovc authored Aug 15, 2017
2 parents 2dc1f1a + a179743 commit 5ed280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5ed280b

Please sign in to comment.