Skip to content

Commit

Permalink
Merge branch 'temp' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyogh committed Apr 22, 2024
2 parents dff128c + 096c490 commit 80a5dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/Image_Saver.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public void actionPerformed(ActionEvent e) {
@Override
public void actionPerformed(ActionEvent e) {
String validPath = checkFileSave("json", "txt");
if (!validPath.endsWith(".json")) {
validPath += ".json";
}
if (validPath == null || validPath.isEmpty()) {
JOptionPane.showMessageDialog(null, "Invalid File!");
markup_valid = false;
Expand Down

0 comments on commit 80a5dd0

Please sign in to comment.