Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: do not request connection state for pristine pattern libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed May 24, 2018
1 parent 05f8a6e commit ce202c5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/electron/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ Sender.receive(message => {
store.setProject(newProject);
store.setActiveView(Types.AlvaView.PageDetail);

Sender.send({
id: uuid.v4(),
payload: newProject.toJSON(),
type: ServerMessageType.CheckLibraryRequest
});
const patternLibrary = newProject.getPatternLibrary();

if (patternLibrary.getState() !== Types.PatternLibraryState.Pristine) {
Sender.send({
id: uuid.v4(),
payload: newProject.toJSON(),
type: ServerMessageType.CheckLibraryRequest
});
}

break;
}
Expand Down

0 comments on commit ce202c5

Please sign in to comment.