Exit application when notification dismissed

This commit is contained in:
Nathan McRae 2025-02-17 21:55:52 -08:00
parent 59625b773c
commit 15192e04e4

View File

@ -3,6 +3,7 @@ package name.nathanmcrae.numbersstation;
import java.util.logging.Logger;
import java.util.logging.Level;
import java.util.Optional;
import javafx.application.Platform;
import javafx.event.Event;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
@ -54,6 +55,7 @@ public class NotificationController {
Node node = (Node) event.getSource();
Stage stage = (Stage) node.getScene().getWindow();
stage.close();
Platform.exit();
}
public record NotificationParameters(String title,