|
|
@ -204,7 +204,6 @@ public class MainWindowController { |
|
|
|
public void init() { |
|
|
|
LOGGER.info("Initializing Project-HomeFlix build " + buildNumber); |
|
|
|
|
|
|
|
// startupCheck(); |
|
|
|
main.loadSettings(); // load settings |
|
|
|
checkAutoUpdate(); |
|
|
|
|
|
|
@ -214,27 +213,7 @@ public class MainWindowController { |
|
|
|
initActions(); |
|
|
|
dbController.init(); |
|
|
|
|
|
|
|
checkAllPosters(); // TODO testing |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void startupCheck() { |
|
|
|
if (!main.getConfigFile().exists()) { |
|
|
|
main.getDirectory().mkdir(); |
|
|
|
System.out.println("config not found"); |
|
|
|
|
|
|
|
main.addFirstSource(); // need to get local |
|
|
|
System.out.println("source finished"); |
|
|
|
mainWindowController.setColor("ee3523"); |
|
|
|
mainWindowController.setFontSize(17.0); |
|
|
|
mainWindowController.setAutoUpdate(false); |
|
|
|
mainWindowController.setLocal(local); // local dosen't exist here |
|
|
|
main.saveSettings(); |
|
|
|
} |
|
|
|
|
|
|
|
if (!main.getPosterCache().exists()) { |
|
|
|
main.getPosterCache().mkdir(); |
|
|
|
} |
|
|
|
posterModeStartup(); // TODO testing |
|
|
|
} |
|
|
|
|
|
|
|
// Initialize general UI elements |
|
|
@ -546,7 +525,7 @@ public class MainWindowController { |
|
|
|
// general fxml actions |
|
|
|
@FXML |
|
|
|
private void aboutBtnAction() { |
|
|
|
String bodyText = "cemu_UI by @Seil0 \nVersion: " + version + " (Build: " + buildNumber + ") \"" |
|
|
|
String bodyText = "Project HomeFlix \nVersion: " + version + " (Build: " + buildNumber + ") \"" |
|
|
|
+ versionName + "\" \n" + getBundle().getString("infoText"); |
|
|
|
JFXInfoAlert infoAlert = new JFXInfoAlert("Project HomeFlix", bodyText, btnStyle, main.getPrimaryStage()); |
|
|
|
infoAlert.showAndWait(); |
|
|
|