AlertDelete shortened code
This commit is contained in:
+1
-3
@@ -21,9 +21,7 @@ public class AlertDelete extends Alert {
|
|||||||
public boolean showAndGetResult() {
|
public boolean showAndGetResult() {
|
||||||
result = false;
|
result = false;
|
||||||
showAndWait().ifPresent(type -> {
|
showAndWait().ifPresent(type -> {
|
||||||
if (type == yesButton) {
|
result = type == yesButton;
|
||||||
result = true;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user