Fixed not aborting launching when not having successfully downloaded all libraries

This commit is contained in:
huangyuhui
2017-05-20 19:01:32 +08:00
parent 30ee33cd66
commit 532ff88ea4
3 changed files with 4 additions and 2 deletions

View File

@@ -519,7 +519,7 @@ public class MainPagePanel extends Page {
isLoading = false;
}
final Consumer<LaunchingStateChangedEvent> launchingStateChanged = t -> SwingUtils.setEnabled(MainFrame.INSTANCE.getRootPane(), t.getValue() == LaunchingState.Done);
final Consumer<LaunchingStateChangedEvent> launchingStateChanged = t -> SwingUtilities.invokeLater(() -> SwingUtils.setEnabled(MainFrame.INSTANCE.getRootPane(), t.getValue() == LaunchingState.Done));
void versionChanged(String selectedVersion) {
isLoading = true;