more loging at start

This commit is contained in:
bancika
2020-09-17 10:07:43 +02:00
parent 98e009ecb9
commit bb0669439e
@@ -173,22 +173,29 @@ public class DIYLCStarter {
System.exit(0); System.exit(0);
} }
} }
LOG.info("Creating the main frame...");
MainFrame mainFrame = new MainFrame(); MainFrame mainFrame = new MainFrame();
Presenter presenter = mainFrame.getPresenter(); Presenter presenter = mainFrame.getPresenter();
LOG.info("Main frame created.");
// mainFrame.setLocationRelativeTo(null); // mainFrame.setLocationRelativeTo(null);
if (splash == null) { if (splash == null) {
LOG.warn("Splash screen could not be initialized", splashException); LOG.warn("Splash screen could not be initialized", splashException);
} else { } else {
LOG.info("Hiding splash screen...");
splash.setVisible(false); splash.setVisible(false);
splash.dispose(); splash.dispose();
LOG.info("Done hiding splash screen.");
} }
mainFrame.setVisible(true); mainFrame.setVisible(true);
// assign open file handler for Mac // assign open file handler for Mac
if (Utils.isMac()) { if (Utils.isMac()) {
LOG.info("Setting up open file handler for Mac...");
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
Application.getApplication().setOpenFileHandler((AppEvent.OpenFilesEvent ofe) -> { Application.getApplication().setOpenFileHandler((AppEvent.OpenFilesEvent ofe) -> {
List<File> files = ofe.getFiles(); List<File> files = ofe.getFiles();
@@ -198,6 +205,7 @@ public class DIYLCStarter {
presenter.loadProjectFromFile(filePath); presenter.loadProjectFromFile(filePath);
} }
} }
LOG.info("Finished setting up open file handler for Mac.");
}); });
}); });
} }