From 0e9e05ff4297c00bb96a678625897c88dacce30f Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:36:26 +0100 Subject: [PATCH] Added system property to auto start ViaProxy --- src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java b/src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java index dad921d..65312d0 100644 --- a/src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java +++ b/src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java @@ -195,6 +195,10 @@ public class GeneralTab extends UITab { this.stateButton.setText(I18n.get("tab.general.state.start")); this.stateButton.setEnabled(true); timer.stop(); + + if (System.getProperty("viaproxy.gui.autoStart") != null) { + this.stateButton.doClick(); + } } }); timer.start();