Fixed bug - Visibility could not be switched in ConfigWindow

This commit is contained in:
Robert Vokac 2024-03-03 13:11:54 +00:00
parent 0f9f32bc32
commit bd0bc03e38
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -297,7 +297,7 @@ public class ConfigWindow extends TWindow {
TimeCalcProperty timeCalcProperty
= TimeCalcProperty.forKey(timeCalcPropertyKey);
jComboBox.setSelectedItem(timeCalcConfiguration.getProperty(timeCalcProperty).getValue());
jComboBox.addPropertyChangeListener(e -> {
jComboBox.addActionListener(e -> {
((StringProperty) timeCalcConfiguration.getProperty(timeCalcProperty))
.setValue(
(String) jComboBox.getSelectedItem());