Skip to content

Commit

Permalink
FutureRestore GUI — v1.97.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CoocooFroggy authored Mar 24, 2022
1 parent e739c65 commit f6490be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,7 @@ static void alertIfNewerFRGUIAvailable(MainMenu mainMenuInstance, String current
String content = getRequestUrl("https://api.github.com/repos/CoocooFroggy/FutureRestore-GUI/releases/latest");

Gson gson = new Gson();
ArrayList<Map<String, Object>> result = gson.fromJson(content, ArrayList.class);
Map<String, Object> newestRelease = result.get(0);
Map<String, Object> newestRelease = gson.fromJson(content, Map.class);
String newestTag = (String) newestRelease.get("tag_name");
System.out.println("Newest FRGUI version: " + newestTag);

Expand Down

0 comments on commit f6490be

Please sign in to comment.