small code cleanup
This commit is contained in:
parent
a23b87fcb8
commit
2e86836041
|
@ -108,9 +108,7 @@ public class Main extends Application {
|
||||||
primaryStage.setScene(scene); // append scene to stage
|
primaryStage.setScene(scene); // append scene to stage
|
||||||
primaryStage.show(); // show stage
|
primaryStage.show(); // show stage
|
||||||
|
|
||||||
System.out.println("test");
|
// startup checks
|
||||||
|
|
||||||
// startup checks TODO move to mwc
|
|
||||||
if (!configFile.exists()) {
|
if (!configFile.exists()) {
|
||||||
directory.mkdir();
|
directory.mkdir();
|
||||||
System.out.println("config not found");
|
System.out.println("config not found");
|
||||||
|
|
|
@ -204,7 +204,6 @@ public class MainWindowController {
|
||||||
public void init() {
|
public void init() {
|
||||||
LOGGER.info("Initializing Project-HomeFlix build " + buildNumber);
|
LOGGER.info("Initializing Project-HomeFlix build " + buildNumber);
|
||||||
|
|
||||||
// startupCheck();
|
|
||||||
main.loadSettings(); // load settings
|
main.loadSettings(); // load settings
|
||||||
checkAutoUpdate();
|
checkAutoUpdate();
|
||||||
|
|
||||||
|
@ -214,27 +213,7 @@ public class MainWindowController {
|
||||||
initActions();
|
initActions();
|
||||||
dbController.init();
|
dbController.init();
|
||||||
|
|
||||||
checkAllPosters(); // TODO testing
|
posterModeStartup(); // 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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize general UI elements
|
// Initialize general UI elements
|
||||||
|
@ -546,7 +525,7 @@ public class MainWindowController {
|
||||||
// general fxml actions
|
// general fxml actions
|
||||||
@FXML
|
@FXML
|
||||||
private void aboutBtnAction() {
|
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");
|
+ versionName + "\" \n" + getBundle().getString("infoText");
|
||||||
JFXInfoAlert infoAlert = new JFXInfoAlert("Project HomeFlix", bodyText, btnStyle, main.getPrimaryStage());
|
JFXInfoAlert infoAlert = new JFXInfoAlert("Project HomeFlix", bodyText, btnStyle, main.getPrimaryStage());
|
||||||
infoAlert.showAndWait();
|
infoAlert.showAndWait();
|
||||||
|
|
|
@ -32,7 +32,7 @@ columnFavorite = Favorit
|
||||||
|
|
||||||
#error translations
|
#error translations
|
||||||
vlcNotInstalled = Um einen Film abspielen wird der VLC Media Player ben\u00F6tigt!
|
vlcNotInstalled = Um einen Film abspielen wird der VLC Media Player ben\u00F6tigt!
|
||||||
infoText = \nAutoren: \n \u2022 seil0@mosad.xyz \n \u2022 hendrik.schutter@coptersicht.de \n(c) 2016-2018 mosad www.mosad.xyz
|
infoText = \nAutoren: \n \u2022 seil0@mosad.xyz \n \u2022 localhorst@mosad.xyz \n(c) 2016-2018 mosad www.mosad.xyz
|
||||||
|
|
||||||
#textFlow translations
|
#textFlow translations
|
||||||
title = Titel
|
title = Titel
|
||||||
|
|
|
@ -32,7 +32,7 @@ columnFavorite = Favorite
|
||||||
|
|
||||||
#error translations
|
#error translations
|
||||||
vlcNotInstalled = VLC Media Player is required to play a movie!
|
vlcNotInstalled = VLC Media Player is required to play a movie!
|
||||||
infoText = \nMaintainers: \n \u2022 seil0@mosad.xyz \n \u2022 hendrik.schutter@coptersicht.de \n(c) 2016-2018 mosad www.mosad.xyz
|
infoText = \nMaintainers: \n \u2022 seil0@mosad.xyz \n \u2022 localhorst@mosad.xyz \n(c) 2016-2018 mosad www.mosad.xyz
|
||||||
|
|
||||||
#textFlow translations
|
#textFlow translations
|
||||||
title = Title
|
title = Title
|
||||||
|
|
Loading…
Reference in New Issue