mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-27 12:46:22 +01:00
[Creator] Show progress dialog when loading the pack manager too.
This commit is contained in:
parent
c5faed3c40
commit
8c9c50ed46
@ -11,6 +11,7 @@ import com.google.common.collect.Lists;
|
|||||||
import com.google.common.util.concurrent.ListeningExecutorService;
|
import com.google.common.util.concurrent.ListeningExecutorService;
|
||||||
import com.skcraft.concurrency.Deferred;
|
import com.skcraft.concurrency.Deferred;
|
||||||
import com.skcraft.concurrency.Deferreds;
|
import com.skcraft.concurrency.Deferreds;
|
||||||
|
import com.skcraft.concurrency.SettableProgress;
|
||||||
import com.skcraft.launcher.creator.Creator;
|
import com.skcraft.launcher.creator.Creator;
|
||||||
import com.skcraft.launcher.creator.dialog.AboutDialog;
|
import com.skcraft.launcher.creator.dialog.AboutDialog;
|
||||||
import com.skcraft.launcher.creator.dialog.PackManagerFrame;
|
import com.skcraft.launcher.creator.dialog.PackManagerFrame;
|
||||||
@ -64,6 +65,7 @@ public class WelcomeController {
|
|||||||
return controller;
|
return controller;
|
||||||
}), executor)
|
}), executor)
|
||||||
.handleAsync(PackManagerController::show, ex -> {}, SwingExecutor.INSTANCE);
|
.handleAsync(PackManagerController::show, ex -> {}, SwingExecutor.INSTANCE);
|
||||||
|
ProgressDialog.showProgress(frame, deferred, new SettableProgress("Loading...", -1), "Loading workspace...", "Loading workspace...");
|
||||||
SwingHelper.addErrorDialogCallback(frame, deferred);
|
SwingHelper.addErrorDialogCallback(frame, deferred);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user