1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-02-17 01:51:24 +01:00

[Build Tools] Don't confirm process close.

This commit is contained in:
sk89q 2015-07-20 16:03:40 -07:00
parent ac3ac99ee8
commit 080ac12545
2 changed files with 6 additions and 1 deletions

View File

@ -272,6 +272,7 @@ public class BuildTools {
public static void main(String[] args) throws Exception {
Launcher.setupLogger();
System.setProperty("skcraftLauncher.killWithoutConfirm", "true");
ToolArguments options = new ToolArguments();
new JCommander(options, args);

View File

@ -216,7 +216,11 @@ public class ProcessConsoleFrame extends ConsoleFrame {
}
private boolean confirmKill() {
return SwingHelper.confirmDialog(this, SharedLocale.tr("console.confirmKill"), SharedLocale.tr("console.confirmKillTitle"));
if (System.getProperty("skcraftLauncher.killWithoutConfirm", "false").equalsIgnoreCase("true")) {
return true;
} else {
return SwingHelper.confirmDialog(this, SharedLocale.tr("console.confirmKill"), SharedLocale.tr("console.confirmKillTitle"));
}
}
private void minimize() {