Skip to content

Commit

Permalink
Fixed a bug where the play button would stop working without saved data.
Browse files Browse the repository at this point in the history
  • Loading branch information
isalin committed May 27, 2018
1 parent b08dbfe commit fa9cfc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TBbard/src/bard/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ public GUI() {
editor = new JSpinner.NumberEditor(spnDelaySpinner, "#");
spnDelaySpinner.setEditor(editor);
//spnCd.setValue(1.0);
spnCd.setValue(Settings.LoadDouble("waitMult"));
if((double)spnCd.getValue() <= 0) spnCd.setValue(1);
spnCd.setValue(Settings.LoadDouble("waitmult"));
if((double)spnCd.getValue() <= 0) spnCd.setValue((double)1);


JComponent comp = spnFpsSpinner.getEditor();
Expand Down Expand Up @@ -531,7 +531,7 @@ public void run() {
try {
Settings.SaveInt("fps", (int)spnFpsSpinner.getValue());
Settings.SaveInt("delay", (int)spnDelaySpinner.getValue());
Settings.SaveDouble("waitMult", (double)spnCd.getValue());
Settings.SaveDouble("waitmult", (double)spnCd.getValue());
n = new Notes((int) spnFpsSpinner.getValue());
n.running = true;
n.holdNotes = holdCheckBox.isSelected();
Expand Down

0 comments on commit fa9cfc0

Please sign in to comment.