MCPcopy Create free account
hub / github.com/Card-Forge/forge / restart

Method restart

forge-gui-mobile/src/forge/Forge.java:656–676  ·  view source on GitHub ↗
(boolean silent)

Source from the content-addressed store, hash-verified

654 }
655
656 public static void restart(boolean silent) {
657 if (exited) {
658 return;
659 } //don't allow exiting multiple times
660
661 Consumer<Boolean> callback = result -> {
662 if (result) {
663 exited = true;
664 exitAnimation(true);
665 }
666 };
667
668
669 if (silent) {
670 callback.accept(true);
671 } else {
672 FOptionPane.showConfirmDialog(
673 getLocalizer().getMessage("lblAreYouSureYouWishRestartForge"), getLocalizer().getMessage("lblRestartForge"),
674 getLocalizer().getMessage("lblRestart"), getLocalizer().getMessage("lblCancel"), callback);
675 }
676 }
677
678 public static void exit(boolean silent) {
679 if (exited) {

Callers 4

restartForgeMethod · 0.95
changeSkinMethod · 0.95
valueChangedMethod · 0.95
selectMethod · 0.95

Calls 5

exitAnimationMethod · 0.95
showConfirmDialogMethod · 0.95
getLocalizerMethod · 0.95
acceptMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected