code clean up

This commit is contained in:
Jannik 2017-11-15 22:00:28 +01:00
parent 0a208f5a6b
commit 2b17d34841
2 changed files with 62 additions and 61 deletions

View File

@ -1558,7 +1558,7 @@ public class MainWindowController {
timePlayedBtnTransition.play();
}
void playBtnSlideOut(){
private void playBtnSlideOut(){
playTrue = false;
TranslateTransition playBtnTransition = new TranslateTransition(Duration.millis(300), playBtn);
playBtnTransition.setFromY(0);

View File

@ -57,8 +57,8 @@ public class UpdateController implements Runnable{
private static final Logger LOGGER = LogManager.getLogger(UpdateController.class.getName());
/**
* updater for cemu_UI based on Project HomeFlix
* checks for Updates and download it in case there is one
* updater for cemu_UI based on Project HomeFlix checks for Updates and download
* it in case there is one
*/
public UpdateController(MainWindowController mwc, String buildNumber, boolean useBeta) {
mainWindowController = mwc;
@ -66,6 +66,7 @@ public class UpdateController implements Runnable{
this.useBeta = useBeta;
}
@Override
public void run() {
System.out.println("checking for updates ...");
Platform.runLater(() -> {
@ -118,7 +119,8 @@ public class UpdateController implements Runnable{
LOGGER.info("Build: " + buildNumber + ", Update: " + updateBuildNumber);
//Compares the program BuildNumber with the current BuildNumber if program BuildNumber < current BuildNumber then perform a update
// Compares the program BuildNumber with the current BuildNumber if program
// BuildNumber < current BuildNumber then perform a update
int iversion = Integer.parseInt(buildNumber);
int iaktVersion = Integer.parseInt(updateBuildNumber.replace(".", ""));
@ -155,4 +157,3 @@ public class UpdateController implements Runnable{
}
}
}