mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-26 23:13:01 +00:00
Relauncher: hide the "do not show on future launches" option for now
This commit is contained in:
1 parent
7d4e9ad9ad
commit
6fe3cbef4c
2 files changed
+10
No files matched your search
@@ -42,6 +42,7 @@ public class RelauncherConfig {
|
||||
public int maxMemoryMB = 4096;
|
||||
public GCOption garbageCollector = GCOption.G1GC;
|
||||
public String[] customOptions = new String[0];
|
||||
public boolean hideSettingsOnLaunch = false;
|
||||
// Advanced
|
||||
public boolean forwardLogs = false;
|
||||
public boolean allowDebugger = false;
|
||||
|
||||
@@ -166,6 +166,10 @@ public class RelauncherUserInterface {
|
||||
}
|
||||
|
||||
public void startSettingsIfNeeded() {
|
||||
if (RelauncherConfig.config.hideSettingsOnLaunch) {
|
||||
// TODO: Show a countdown and add a way to show settings again
|
||||
return;
|
||||
}
|
||||
invokeOnSwingThread(true, () -> {
|
||||
initSwingIfNeeded();
|
||||
final JDialog settingsDialog = new JDialog(
|
||||
@@ -224,6 +228,10 @@ public class RelauncherUserInterface {
|
||||
contents.optFmlDebugAts.setSelected(initCfg.fmlDebugAts);
|
||||
contents.optRfbDumpClasses.setSelected(initCfg.rfbDumpClasses);
|
||||
contents.optRfbDumpTransformers.setSelected(initCfg.rfbDumpPerTransformer);
|
||||
contents.optHideOnFutureLaunches.setSelected(initCfg.hideSettingsOnLaunch);
|
||||
// do not show for now
|
||||
contents.optHideOnFutureLaunches.setEnabled(false);
|
||||
contents.optHideOnFutureLaunches.setVisible(false);
|
||||
|
||||
refreshJavaInstalls(contents);
|
||||
saveConfig(contents);
|
||||
@@ -335,6 +343,7 @@ public class RelauncherUserInterface {
|
||||
initCfg.fmlDebugAts = contents.optFmlDebugAts.isSelected();
|
||||
initCfg.rfbDumpClasses = contents.optRfbDumpClasses.isSelected();
|
||||
initCfg.rfbDumpPerTransformer = contents.optRfbDumpTransformers.isSelected();
|
||||
initCfg.hideSettingsOnLaunch = contents.optHideOnFutureLaunches.isSelected();
|
||||
RelauncherConfig.save();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user