some minor cleanup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
e4cc195fa8
commit
03c69b232a
|
@ -206,16 +206,12 @@ public class SettingsView {
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void updateBtnAction(ActionEvent event) {
|
private void updateBtnAction(ActionEvent event) {
|
||||||
|
|
||||||
|
|
||||||
new UpdateController();
|
|
||||||
if (UpdateController.isUpdateAvailable()) {
|
if (UpdateController.isUpdateAvailable()) {
|
||||||
updateBtn.setText(XMLController.getLocalBundle().getString("updateBtnUpdateAvailable"));
|
updateBtn.setText(XMLController.getLocalBundle().getString("updateBtnUpdateAvailable"));
|
||||||
UpdateController.update();
|
UpdateController.update();
|
||||||
} else {
|
} else {
|
||||||
updateBtn.setText(XMLController.getLocalBundle().getString("updateBtnNoUpdateAvailable"));
|
updateBtn.setText(XMLController.getLocalBundle().getString("updateBtnNoUpdateAvailable"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** TODO can this be done async?
|
/** TODO can this be done async?
|
||||||
|
|
|
@ -57,9 +57,6 @@ public class UpdateController {
|
||||||
/**
|
/**
|
||||||
* updater for Project HomeFlix based on cemu_UIs, checks for Updates and download it
|
* updater for Project HomeFlix based on cemu_UIs, checks for Updates and download it
|
||||||
*/
|
*/
|
||||||
public UpdateController() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void update() {
|
public static void update() {
|
||||||
if (browserDownloadUrl != null) {
|
if (browserDownloadUrl != null) {
|
||||||
|
|
Loading…
Reference in New Issue