Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Fix a bug introduced in the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 23, 2019
1 parent fbfeea4 commit b2f33e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ func Init() {

// Then wait for more data to come running down the pipe.
label.SetText(<-newAddedExercise)
}

// First we loop through the imported file and add the formated info before the previous info (new information comes out on top).
for i := range XMLData.Exercise {
label.SetText(XMLData.Format(i) + label.Text)
} else {
// We loop through the imported file and add the formated info before the previous info (new information comes out on top).
for i := range XMLData.Exercise {
label.SetText(XMLData.Format(i) + label.Text)
}
}

// We then block the channel while waiting for an update on the channel.
Expand Down

0 comments on commit b2f33e4

Please sign in to comment.