mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
more loging at start
This commit is contained in:
@@ -174,21 +174,28 @@ public class DIYLCStarter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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.");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user