forked from j62/ctbrec
1
0
Fork 0

Clear state comboboxes before filling them to avoid duplicates

This commit is contained in:
0xboobface 2018-12-10 14:34:56 +01:00
parent b715fba836
commit 448cfd14b8
1 changed files with 2 additions and 0 deletions

View File

@ -241,8 +241,10 @@ public class ActionSettingsPanel extends TitledPane {
layout.add(event, 1, row++);
layout.add(new Label("State"), 0, row);
modelState.getItems().clear();
modelState.getItems().addAll(Model.State.values());
layout.add(modelState, 1, row);
recordingState.getItems().clear();
recordingState.getItems().addAll(Recording.State.values());
layout.add(recordingState, 1, row++);
recordingState.visibleProperty().bind(modelState.visibleProperty().not());