Skip to content

Commit

Permalink
Update exit mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Sep 18, 2020
1 parent 85fbf3a commit 52d065d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/duke/gui/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import duke.ui.Ui;
import javafx.animation.PauseTransition;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
Expand Down Expand Up @@ -263,7 +262,7 @@ private void handleUserInput() {

if (isExit) {
PauseTransition pause = new PauseTransition(Duration.seconds(1));
pause.setOnFinished(event -> Platform.exit());
pause.setOnFinished(event -> System.exit(0));
pause.play();

}
Expand Down

0 comments on commit 52d065d

Please sign in to comment.