Skip to content

Commit

Permalink
Fix condition of saving file in setOnCloseRequest and Upgrade Versian…
Browse files Browse the repository at this point in the history
… to 2.4.1
  • Loading branch information
hamidhandid authored and Borjianamin98 committed Mar 26, 2021
1 parent d4d48a5 commit 4c8ecfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ir.ac.sbu</groupId>
<artifactId>PGen</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ir/ac/sbu/controller/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private void setOnCloseRequest(WindowEvent event) {
// but then close the opened window without selecting any path or without pressing any buttons.
// In this case, the person has practically given up and we do not want to close the program,
// so we check whether the user has actually saved the file or not.
|| (result.get().equals(ButtonType.YES) && fileSave(null))) {
|| (result.get().equals(ButtonType.YES) && !fileSave(null))) {
event.consume();
return;
}
Expand Down

0 comments on commit 4c8ecfd

Please sign in to comment.