added save again to select track state
This commit is contained in:
parent
5c7072fae5
commit
2c7e7d61d8
@ -99,11 +99,10 @@ public class SelectTrackState extends AbstractAppState implements SelectFileList
|
|||||||
settings.setAudioFile(null);
|
settings.setAudioFile(null);
|
||||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||||
String parentDictionary = jFileChooser.getSelectedFile().getParent();
|
String parentDictionary = jFileChooser.getSelectedFile().getParent();
|
||||||
//TODO need to be fixed
|
|
||||||
// if (parentDictionary != null && !parentDictionary.isEmpty()) {
|
if (parentDictionary != null && !parentDictionary.isEmpty()) {
|
||||||
// optionSettings.setFileSelectFolder(parentDictionary);
|
optionSettings.setFileSelectFolder(parentDictionary);
|
||||||
// optionSettings.save();
|
}
|
||||||
// }
|
|
||||||
File file = jFileChooser.getSelectedFile();
|
File file = jFileChooser.getSelectedFile();
|
||||||
settings.setVideoFile(file.getPath());
|
settings.setVideoFile(file.getPath());
|
||||||
readMetadata(settings.getVideoFile());
|
readMetadata(settings.getVideoFile());
|
||||||
@ -115,6 +114,7 @@ public class SelectTrackState extends AbstractAppState implements SelectFileList
|
|||||||
case 2:
|
case 2:
|
||||||
if (wasFullscreen) {
|
if (wasFullscreen) {
|
||||||
optionSettings.setFullscreen(true);
|
optionSettings.setFullscreen(true);
|
||||||
|
optionSettings.save();
|
||||||
shootingStars.setSettings(optionSettings.getAppSettings());
|
shootingStars.setSettings(optionSettings.getAppSettings());
|
||||||
shootingStars.restart();
|
shootingStars.restart();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user