Skip to content

Commit

Permalink
Showing 3 changed files with 30 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ All notable changes to this project will be documented in this file.
- [Multiple] Clean-up and debuggability (#2399 by: HebaruSan; reviewed: politas)
- [Netkan] Don't double encode GitHub download URLs (#2402 by: HebaruSan; reviewed: politas)
- [Netkan] Option to override SpaceDock version with AVC version (#2406 by: HebaruSan; reviewed: politas)
- [GUI] Move AutoUpdate.CanUpdate check to resolve VisualStudio Designer Error (#2407 by: DasSkellet; reviewed: Olympic1, politas)

### Internal

41 changes: 19 additions & 22 deletions GUI/SettingsDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions GUI/SettingsDialog.cs
Original file line number Diff line number Diff line change
@@ -399,8 +399,16 @@ private void CheckForUpdatesButton_Click(object sender, EventArgs e)

private void InstallUpdateButton_Click(object sender, EventArgs e)
{
Hide();
Main.Instance.UpdateCKAN();
if (AutoUpdate.CanUpdate)
{
Hide();
Main.Instance.UpdateCKAN();
}
else
{
GUI.user.RaiseError("Can't autoupdate. Please check https://github.com/KSP-CKAN/CKAN/ for help!");
}

}

private void CheckUpdateOnLaunchCheckbox_CheckedChanged(object sender, EventArgs e)

0 comments on commit ad78cd4

Please sign in to comment.