Skip to content

Commit

Permalink
chore: Changed the confirmation dialog message
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Feb 14, 2024
1 parent 501534f commit 7f491d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/src/main/java/gui/updater/ExecuteUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void executeUpdate() throws IOException {
M.msgUpdateInfo("Update successful!");
ProcessBuilder processBuilder = new ProcessBuilder(Paths.get(URLDecoder.decode(Drifty_GUI.class.getProtectionDomain().getCodeSource().getLocation().getPath(), StandardCharsets.UTF_8)).toAbsolutePath().toString());
processBuilder.start();
new ConfirmationDialog("Update Successful", "Update was successfully installed!" + System.lineSeparator().repeat(2) + "Please restart Drifty to see the changes!").getResponse();
new ConfirmationDialog("Update Successful", "Update was successfully installed!" + System.lineSeparator().repeat(2) + "Restarting Drifty...").getResponse();
Files.deleteIfExists(Paths.get(currentExecutablePathString + ".old"));
}
}

0 comments on commit 7f491d6

Please sign in to comment.