Some more minor refactoring

This commit is contained in:
cyian-1756 2017-11-25 22:41:58 -05:00
parent ff6aeeda68
commit 66212725bd

View File

@ -731,9 +731,8 @@ public final class MainWindow implements Runnable, RipStatusHandler {
configSaveDirLabel.setText(Utils.shortenPath(chosenPath)); configSaveDirLabel.setText(Utils.shortenPath(chosenPath));
Utils.setConfigString("rips.directory", chosenPath); Utils.setConfigString("rips.directory", chosenPath);
}); });
configOverwriteCheckbox.addActionListener(arg0 -> Utils.setConfigBoolean("file.overwrite", configOverwriteCheckbox.isSelected())); addCheckboxListener(configSaveOrderCheckbox, "download.save_order");
configSaveOrderCheckbox.addActionListener(arg0 -> Utils.setConfigBoolean("download.save_order", configSaveOrderCheckbox.isSelected())); addCheckboxListener(configOverwriteCheckbox, "file.overwrite");
addCheckboxListener(configSaveLogs, "log.save"); addCheckboxListener(configSaveLogs, "log.save");
addCheckboxListener(configSaveURLsOnly, "urls_only.save"); addCheckboxListener(configSaveURLsOnly, "urls_only.save");
addCheckboxListener(configURLHistoryCheckbox, "remember.url_history"); addCheckboxListener(configURLHistoryCheckbox, "remember.url_history");