Skip to content

Commit

Permalink
Migrated ImportExportPreferences to new preferences model
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed Nov 6, 2021
1 parent 404d633 commit 38c9f48
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ public void setValues() {
public void storeSettings() {
preferences.storeOpenLastFilesOnStartup(openLastStartupProperty.getValue());

preferences.getImportExportPreferences().setNonWrappableFields(noWrapFilesProperty.getValue().trim());
preferences.getImportExportPreferences().setResolveStringsForStandardBibtexFields(resolveStringsBibTexProperty.getValue());
preferences.getImportExportPreferences().setResolveStringsForAllStrings(resolveStringsAllProperty.getValue());
preferences.getImportExportPreferences().setNonResolvableFields(resolveStringsExceptProperty.getValue().trim());
preferences.getImportExportPreferences().setNewLineSeparator(selectedNewLineSeparatorProperty.getValue());
preferences.getImportExportPreferences().setAlwaysReformatOnSave(alwaysReformatBibProperty.getValue());
// preferences.getImportExportPreferences().setImportWorkingDirectory(initialImportExportPreferences.getImportWorkingDirectory());
// preferences.getImportExportPreferences().setLastExportExtension(initialImportExportPreferences.getLastExportExtension());
// preferences.getImportExportPreferences().setExportWorkingDirectory(initialImportExportPreferences.getExportWorkingDirectory());
importExportPreferences.setNonWrappableFields(noWrapFilesProperty.getValue().trim());
importExportPreferences.setResolveStringsForStandardBibtexFields(resolveStringsBibTexProperty.getValue());
importExportPreferences.setResolveStringsForAllStrings(resolveStringsAllProperty.getValue());
importExportPreferences.setNonResolvableFields(resolveStringsExceptProperty.getValue().trim());
importExportPreferences.setNewLineSeparator(selectedNewLineSeparatorProperty.getValue());
importExportPreferences.setAlwaysReformatOnSave(alwaysReformatBibProperty.getValue());

preferences.storeShouldAutosave(autosaveLocalLibraries.getValue());
}
Expand All @@ -74,6 +71,8 @@ public BooleanProperty openLastStartupProperty() {
return openLastStartupProperty;
}

// ImportExport

public StringProperty noWrapFilesProperty() {
return noWrapFilesProperty;
}
Expand Down

0 comments on commit 38c9f48

Please sign in to comment.