Exit application when notification dismissed
This commit is contained in:
parent
59625b773c
commit
15192e04e4
@ -3,6 +3,7 @@ package name.nathanmcrae.numbersstation;
|
|||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import javafx.application.Platform;
|
||||||
import javafx.event.Event;
|
import javafx.event.Event;
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
@ -54,6 +55,7 @@ public class NotificationController {
|
|||||||
Node node = (Node) event.getSource();
|
Node node = (Node) event.getSource();
|
||||||
Stage stage = (Stage) node.getScene().getWindow();
|
Stage stage = (Stage) node.getScene().getWindow();
|
||||||
stage.close();
|
stage.close();
|
||||||
|
Platform.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
public record NotificationParameters(String title,
|
public record NotificationParameters(String title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user