include extras

This commit is contained in:
2024-06-20 22:34:38 +02:00
parent 4ea4a70e50
commit 3be25d7070
6 changed files with 33 additions and 20 deletions

View File

@@ -113,6 +113,7 @@ public partial class Form1
LoadUpdateConfigFile(modpackInfo.ConfigUrl);
else
RadButton_CheckForUpdates.PerformClick();
radCheckBox_IncludeExtras.Checked = modpackInfo.IncludeExtras;
}
else
ClearStatus();
@@ -261,10 +262,12 @@ public partial class Form1
{
AppConfig.Instance.LastMinecraftProfilePath = RadTextBoxControl_MinecraftProfileFolder.Text;
AppConfig.Instance.LastConfigFilePath = RadTextBoxControl_ModpackConfig.Text;
AppConfig.Instance.LastIncludeExtras = radCheckBox_IncludeExtras.Checked;
}
private void Form1_Load(object sender, EventArgs e)
{
radCheckBox_IncludeExtras.Checked = updateOptions.IncludeExtraActions || AppConfig.Instance.LastIncludeExtras;
if (Directory.Exists(AppConfig.Instance.LastMinecraftProfilePath))
LoadMinecraftProfile(AppConfig.Instance.LastMinecraftProfilePath);
if (!string.IsNullOrWhiteSpace(AppConfig.Instance.LastConfigFilePath))
@@ -282,4 +285,9 @@ public partial class Form1
Application.Restart();
}
}
private void RadCheckBox_IncludeExtras_ToggleStateChanged(object sender, StateChangedEventArgs args)
{
updateOptions.IncludeExtraActions = radCheckBox_IncludeExtras.Checked;
}
}