added save again to select track state

This commit is contained in:
TheCodeBoat 2014-02-13 19:13:59 +01:00
parent 5c7072fae5
commit 2c7e7d61d8

View File

@ -99,11 +99,10 @@ public class SelectTrackState extends AbstractAppState implements SelectFileList
settings.setAudioFile(null);
if (returnVal == JFileChooser.APPROVE_OPTION) {
String parentDictionary = jFileChooser.getSelectedFile().getParent();
//TODO need to be fixed
// if (parentDictionary != null && !parentDictionary.isEmpty()) {
// optionSettings.setFileSelectFolder(parentDictionary);
// optionSettings.save();
// }
if (parentDictionary != null && !parentDictionary.isEmpty()) {
optionSettings.setFileSelectFolder(parentDictionary);
}
File file = jFileChooser.getSelectedFile();
settings.setVideoFile(file.getPath());
readMetadata(settings.getVideoFile());
@ -115,6 +114,7 @@ public class SelectTrackState extends AbstractAppState implements SelectFileList
case 2:
if (wasFullscreen) {
optionSettings.setFullscreen(true);
optionSettings.save();
shootingStars.setSettings(optionSettings.getAppSettings());
shootingStars.restart();
}