Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Commit

Permalink
Final commit before release?
Browse files Browse the repository at this point in the history
  • Loading branch information
Parcly-Taxel committed Sep 14, 2019
1 parent 7118a67 commit f902f6d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group "bari"
version "0.9.5"
version "1.0.0"

repositories {
mavenCentral()
Expand All @@ -28,7 +28,7 @@ javafx {

shadowJar {
archiveBaseName = "bari"
archiveVersion = "0.9.5"
archiveVersion = "1.0.0"
archiveClassifier = null
archiveAppendix = null
}
Expand Down
20 changes: 12 additions & 8 deletions src/main/java/bari/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ public void setBari(Bari d) {
bari = d;
}

private void exitApplication() {
// Wait for 0.5 seconds and exit
Timer tm = new Timer();
tm.schedule(new TimerTask() {
@Override
public void run() {
System.exit(0);
}
}, 500);
}

/**
* Creates two dialog boxes, one echoing user input and the other
* containing Bari's reply and then appends them to the dialog container.
Expand All @@ -53,14 +64,7 @@ private void handleUserInput() {
userInput.clear();
// This response is only produced by an ExitCommand
if (response.equals("Bye!")) {
// Wait for 0.5 seconds and exit
Timer tm = new Timer();
tm.schedule(new TimerTask() {
@Override
public void run() {
System.exit(0);
}
}, 500);
exitApplication();
}
}
}
1 change: 0 additions & 1 deletion tasks.txt

This file was deleted.

0 comments on commit f902f6d

Please sign in to comment.