mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 10:06:45 +00:00
more string builders 1
This commit is contained in:
@@ -157,20 +157,20 @@ public class ExportDialog extends AppDialog {
|
||||
}
|
||||
|
||||
private void saveConfig() {
|
||||
String cfg = "";
|
||||
StringBuilder cfg = new StringBuilder();
|
||||
for (int i = 0; i < optionNames.length; i++) {
|
||||
int selIndex = combos[i].getSelectedIndex();
|
||||
Class c = optionClasses[i];
|
||||
Object vals[] = c.getEnumConstants();
|
||||
String key = optionNames[i] + "." + vals[selIndex].toString().toLowerCase();
|
||||
if (i > 0) {
|
||||
cfg += ",";
|
||||
cfg.append(",");
|
||||
}
|
||||
cfg += key;
|
||||
cfg.append(key);
|
||||
}
|
||||
|
||||
Configuration.lastSelectedExportZoom.set(Double.parseDouble(zoomTextField.getText()) / 100);
|
||||
Configuration.lastSelectedExportFormats.set(cfg);
|
||||
Configuration.lastSelectedExportFormats.set(cfg.toString());
|
||||
}
|
||||
|
||||
public ExportDialog(List<TreeItem> exportables) {
|
||||
|
||||
Reference in New Issue
Block a user