properly create preferences on first launch

This commit is contained in:
Harrison Deng 2017-04-21 11:39:04 -05:00
parent f1fb1adf47
commit 0917c40508

View File

@ -139,11 +139,14 @@ public class OptionsPage extends Page {
}
});
optionsTable.add(graphicsSettings).colspan(2).fill();
saveOptions(core.prefs);
}
public void saveOptions(Preferences prefs) {
prefs.putFloat("music vol", musicVolSlider.getValue());
prefs.putFloat("fx vol", fxVolSlider.getValue());
System.out.println(directoryField.getText());
prefs.putString("music dir", directoryField.getText());
prefs.flush();
}