Fix: Can't auto-approve the relaunch when hideSettingsOnLauncher == true (#364)

This commit is contained in:
wufe8 authored and GitHub committed 2026-09-06 09:17:04 +01:00
1 parent 9fedd9b8f3
commit 0a19ab79a6
1 file changed
+4
@@ -181,7 +181,11 @@ public class RelauncherUserInterface {
public void startSettingsIfNeeded() {
if (RelauncherConfig.config.hideSettingsOnLaunch) {
// The settings GUI is skipped, so nobody will ever click the "Run" button.
// Approve the relaunch with the saved config here, otherwise Relauncher.run()
// sees runClicked == false and silently exits without starting the game.
// TODO: Show a countdown and add a way to show settings again
runClicked = true;
return;
}
invokeOnSwingThread(true, () -> {