properly create preferences on first launch
This commit is contained in:
parent
f1fb1adf47
commit
0917c40508
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user