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:
parent
ac3ac99ee8
commit
080ac12545
@ -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);
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user