Skip to content

Commit

Permalink
send status message on done training
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMcCallum committed Jan 10, 2019
1 parent 7f14dfc commit 3ece354
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wekimini/SupervisedLearningManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ public LearningState getLearningState() {
private void setLearningState(LearningState learningState) {
LearningState oldLearningState = this.learningState;
this.learningState = learningState;
if(this.learningState == SupervisedLearningManager.LearningState.DONE_TRAINING)
{
w.getOutputManager().sendMessage("/wekinator/status/done-training");
}
updateAbleToRun();
propertyChangeSupport.firePropertyChange(PROP_LEARNINGSTATE, oldLearningState, learningState);
}
Expand Down

0 comments on commit 3ece354

Please sign in to comment.