Skip to content

Commit

Permalink
Added system property to auto start ViaProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Oct 30, 2024
1 parent a4099d7 commit 0e9e05f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/raphimc/viaproxy/ui/impl/GeneralTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ private void addFooter(final Container parent) {
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();
Expand Down

0 comments on commit 0e9e05f

Please sign in to comment.