set the some default preferences if file not found

This commit is contained in:
Andreas Billmann
2016-02-16 17:18:37 +01:00
parent 028af43510
commit 3b220c3fd5
2 changed files with 6 additions and 1 deletions

View File

@@ -457,6 +457,8 @@ public class SmartCSVController extends FXMLController {
if (PREFERENCES_FILE.exists()) {
useLoadFileService(preferencesLoader, PREFERENCES_FILE,
event -> setCsvPreference(preferencesLoader.getCSVpreference()));
} else {
setCsvPreference(CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE);
}
}