GUI, preferences: removed outdated settings with images download threads (it's 5 by default now)

This commit is contained in:
Oleg Agafonov 2024-10-06 13:42:27 +04:00
parent 2fa07c8ecc
commit f0c6835d36
3 changed files with 17 additions and 85 deletions

View file

@ -65,6 +65,7 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
private static final List<String> basicList = Arrays.asList("Plains", "Island", "Swamp", "Mountain", "Forest");
private static final int MAX_ERRORS_COUNT_BEFORE_CANCEL = 50;
private static final int DEFAULT_DOWNLOAD_THREADS = 5;
// protect from wrong data save
// there are possible land images with small sizes, so must research content in check
@ -200,7 +201,7 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
// DOWNLOAD THREADS
uiDialog.getDownloadThreadsCombo().setModel(new DefaultComboBoxModel<>(new String[]{"10", "9", "8", "7", "6", "5", "4", "3", "2", "1"}));
uiDialog.getDownloadThreadsCombo().setSelectedItem(PreferencesDialog.getPrefDownloadThreads().toString());
uiDialog.getDownloadThreadsCombo().setSelectedItem(String.valueOf(DEFAULT_DOWNLOAD_THREADS));
// REDOWNLOAD
uiDialog.getRedownloadCheckbox().setSelected(false);