include extras
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user