Skip to content

Commit 2842752

Browse files
ddamkeddamke
authored andcommitted
close Keeptime after import of old sql script
1 parent 31ca16a commit 2842752

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/de/doubleslash/keeptime/view/SettingsController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.nio.file.Paths;
2424
import java.sql.SQLException;
2525

26+
import javafx.application.Platform;
2627
import javafx.scene.control.*;
2728
import org.h2.tools.RunScript;
2829
import org.h2.tools.Script;
@@ -274,9 +275,10 @@ private void initImportButton(){
274275
Alert informationDialog = new Alert(AlertType.INFORMATION);
275276
informationDialog.setTitle("Import done");
276277
informationDialog.setHeaderText("The data was imported.");
277-
informationDialog.setContentText("You have to RESTART KeepTime to see the changes");
278+
informationDialog.setContentText("KeepTime will now be CLOSED! You have to RESTART it again to see the changes");
278279
informationDialog.showAndWait();
279280

281+
Platform.exit();
280282
} catch (SQLException e) {
281283
LOG.error("Could not import script file to db.", e);
282284

0 commit comments

Comments
 (0)