forked from j62/ctbrec
Add validation for recording state
This commit is contained in:
parent
605b62ca0e
commit
b715fba836
|
@ -201,6 +201,9 @@ public class ActionSettingsPanel extends TitledPane {
|
||||||
if(event.getValue() == Event.Type.MODEL_STATUS_CHANGED && modelState.getValue() == null) {
|
if(event.getValue() == Event.Type.MODEL_STATUS_CHANGED && modelState.getValue() == null) {
|
||||||
throw new IllegalStateException("Select a state");
|
throw new IllegalStateException("Select a state");
|
||||||
}
|
}
|
||||||
|
if(event.getValue() == Event.Type.RECORDING_STATUS_CHANGED && recordingState.getValue() == null) {
|
||||||
|
throw new IllegalStateException("Select a state");
|
||||||
|
}
|
||||||
if(modelSelectionPane.getSelectedItems().isEmpty() && !modelSelectionPane.isAllSelected()) {
|
if(modelSelectionPane.getSelectedItems().isEmpty() && !modelSelectionPane.isAllSelected()) {
|
||||||
throw new IllegalStateException("Select one or more models or tick off \"all\"");
|
throw new IllegalStateException("Select one or more models or tick off \"all\"");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue