Changeset 13960 in josm
- Timestamp:
- 2018-06-20T18:00:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r13956 r13960 1028 1028 1029 1029 final SplashScreen splash = GuiHelper.runInEDTAndWaitAndReturn(SplashScreen::new); 1030 final SplashScreen.SplashProgressMonitor monitor = splash.getProgressMonitor(); 1030 // splash can be null sometimes on Linux, in this case try to load JOSM silently 1031 final SplashProgressMonitor monitor = splash != null ? splash.getProgressMonitor() : new SplashProgressMonitor(null, e -> { 1032 Logging.debug(e.toString()); 1033 }); 1031 1034 monitor.beginTask(tr("Initializing")); 1032 GuiHelper.runInEDT(() -> splash.setVisible(Config.getPref().getBoolean("draw.splashscreen", true))); 1035 if (splash != null) { 1036 GuiHelper.runInEDT(() -> splash.setVisible(Config.getPref().getBoolean("draw.splashscreen", true))); 1037 } 1033 1038 Main.setInitStatusListener(new InitStatusListener() { 1034 1039 … … 1071 1076 // Wait for splash disappearance (fix #9714) 1072 1077 GuiHelper.runInEDTAndWait(() -> { 1073 splash.setVisible(false); 1074 splash.dispose(); 1078 if (splash != null) { 1079 splash.setVisible(false); 1080 splash.dispose(); 1081 } 1075 1082 mainFrame.setVisible(true); 1076 1083 });
Note:
See TracChangeset
for help on using the changeset viewer.