We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f3e86 commit 302c326Copy full SHA for 302c326
src/main/java/ee/ut/similaritydetector/ui/controllers/MenuBarController.java
@@ -8,6 +8,7 @@
8
import javafx.scene.control.MenuItem;
9
import javafx.stage.Stage;
10
import ee.ut.similaritydetector.ui.utils.UserData;
11
+import javafx.stage.WindowEvent;
12
13
import static ee.ut.similaritydetector.ui.utils.AlertUtils.showAlert;
14
@@ -64,7 +65,7 @@ private void initialize() {
64
65
66
@FXML
67
private void exitMenuItemClicked() {
- MainViewController.stage.close();
68
+ MainViewController.stage.fireEvent(new WindowEvent(MainViewController.stage, WindowEvent.WINDOW_CLOSE_REQUEST));
69
}
70
71
/**
0 commit comments