more code cleanup
This commit is contained in:
parent
036ed8ad11
commit
1fca1c551d
|
@ -48,8 +48,10 @@ public class UpdateController implements Runnable {
|
|||
private String buildNumber;
|
||||
private String apiOutput;
|
||||
private String updateBuildNumber; // tag_name from Github
|
||||
// private String updateName;
|
||||
// private String updateChanges;
|
||||
@SuppressWarnings("unused")
|
||||
private String updateName;
|
||||
@SuppressWarnings("unused")
|
||||
private String updateChanges;
|
||||
private String browserDownloadUrl; // update download link
|
||||
private String githubApiRelease = "https://api.github.com/repos/Seil0/Project-HomeFlix/releases/latest";
|
||||
private String githubApiBeta = "https://api.github.com/repos/Seil0/Project-HomeFlix/releases";
|
||||
|
@ -101,8 +103,8 @@ public class UpdateController implements Runnable {
|
|||
JsonArray objectAssets = object.asObject().get("assets").asArray();
|
||||
|
||||
updateBuildNumber = object.asObject().getString("tag_name", "");
|
||||
// updateName = object.asObject().getString("name", "");
|
||||
// updateChanges = object.asObject().getString("body", "");
|
||||
updateName = object.asObject().getString("name", "");
|
||||
updateChanges = object.asObject().getString("body", "");
|
||||
|
||||
for (JsonValue asset : objectAssets) {
|
||||
browserDownloadUrl = asset.asObject().getString("browser_download_url", "");
|
||||
|
@ -113,8 +115,8 @@ public class UpdateController implements Runnable {
|
|||
JsonArray objectAssets = Json.parse(apiOutput).asObject().get("assets").asArray();
|
||||
|
||||
updateBuildNumber = object.getString("tag_name", "");
|
||||
// updateName = object.getString("name", "");
|
||||
// updateChanges = object.getString("body", "");
|
||||
updateName = object.getString("name", "");
|
||||
updateChanges = object.getString("body", "");
|
||||
for (JsonValue asset : objectAssets) {
|
||||
browserDownloadUrl = asset.asObject().getString("browser_download_url", "");
|
||||
|
||||
|
|
|
@ -65,10 +65,8 @@ public class PlayerController {
|
|||
|
||||
@FXML
|
||||
private JFXButton stopBtn;
|
||||
|
||||
@FXML
|
||||
private JFXButton playBtn;
|
||||
|
||||
@FXML
|
||||
private JFXButton fullscreenBtn;
|
||||
|
||||
|
|
Loading…
Reference in New Issue