fixed combobox listeners in initSettings()
This commit is contained in:
parent
04017e8afe
commit
7389f2300b
@ -781,7 +781,7 @@ public class LauncherGUI implements Observer {
|
|||||||
private void initComboBox(JComboBox<String> cb, String parameter, Parameter.ParameterType pType, String[] values) {
|
private void initComboBox(JComboBox<String> cb, String parameter, Parameter.ParameterType pType, String[] values) {
|
||||||
Parameter<String> paraObj = new Parameter<>(parameter, pType, String.class, values);
|
Parameter<String> paraObj = new Parameter<>(parameter, pType, String.class, values);
|
||||||
cb.setSelectedIndex(paraObj.getIndex());
|
cb.setSelectedIndex(paraObj.getIndex());
|
||||||
if (cb.getItemListeners().length == 0) cb.addItemListener(new SettingsHandler.ComboBoxListener(paraObj));
|
if (cb.getItemListeners().length == 1) cb.addItemListener(new SettingsHandler.ComboBoxListener(paraObj));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initFolderChooser(JTextField showText, JButton actionButton, String parameter, Parameter.ParameterType pType, Callback.JFileSelectCallback check) {
|
private void initFolderChooser(JTextField showText, JButton actionButton, String parameter, Parameter.ParameterType pType, Callback.JFileSelectCallback check) {
|
||||||
|
@ -110,3 +110,4 @@ presets_note=Presets can only be used as preset for new user presents. You can c
|
|||||||
clone_preset=Clone preset
|
clone_preset=Clone preset
|
||||||
modset_exists_msg=Please choose another name for your preset.
|
modset_exists_msg=Please choose another name for your preset.
|
||||||
modset_exists=Preset with these names already exists
|
modset_exists=Preset with these names already exists
|
||||||
|
update_now=Update now!
|
Loading…
Reference in New Issue
Block a user