Create alert popup if user wants to create new game schedule #49
+1
-3
@@ -21,9 +21,7 @@ public class AlertDelete extends Alert {
|
||||
public boolean showAndGetResult() {
|
||||
result = false;
|
||||
showAndWait().ifPresent(type -> {
|
||||
if (type == yesButton) {
|
||||
result = true;
|
||||
}
|
||||
result = type == yesButton;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user