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

First quick check if lastEmittedState and appState are different #10498

Merged
merged 1 commit into from
Aug 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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