Skip to content

Commit

Permalink
Fixed issue #979.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Aug 22, 2023
1 parent f950af8 commit d11826b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/org/nschmidt/ldparteditor/splash/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
import org.nschmidt.ldparteditor.data.PGTimestamp;
import org.nschmidt.ldparteditor.dialog.startup.StartupDialog;
import org.nschmidt.ldparteditor.enumtype.LDConfig;
import org.nschmidt.ldparteditor.helper.LDPartEditorException;
import org.nschmidt.ldparteditor.helper.ProgressHelper;
import org.nschmidt.ldparteditor.helper.ShellHelper;
import org.nschmidt.ldparteditor.helper.Version;
Expand Down Expand Up @@ -316,20 +315,12 @@ public void run() {
display.readAndDispatch();
}
// Close the splash..
try {
Thread.sleep(800);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
throw new LDPartEditorException(ie);
}
close();
while (!bar.isDisposed()) {
if (!Display.getCurrent().readAndDispatch()) {
Display.getCurrent().sleep();
}
}
// ..and dispose the splash image, because it is not needed anymore
ResourceManager.disposeImage("imgSplash.png"); //$NON-NLS-1$
// Check if we were ran into trouble..
if (threadReturn[0] != ReturnType.NO_ERROR) {
MessageBox messageBox = new MessageBox(new Shell(), SWT.ICON_ERROR);
Expand Down

0 comments on commit d11826b

Please sign in to comment.