Skip to content

Commit

Permalink
Merge #2316 Fix GUI instance name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
politas committed Feb 25, 2018
2 parents ca2b052 + 26056e8 commit 86bf144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- [GUI] Better resizing for Select KSP Install window (#2306 by: HebaruSan; reviewed: politas)
- [GUI] Fix GUI sort by size (#2311 by: HebaruSan; reviewed: politas)
- [Core] Don't crash if download_hash isn't set (#2313 by: HebaruSan; reviewed: politas)
- [GUI] Fix GUI instance name checking (#2316 by: HebaruSan; reviewed: politas)

## v1.24.0 (Bruce)

Expand Down
2 changes: 1 addition & 1 deletion GUI/ChooseKSPInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ private void AddNewButton_Click(object sender, EventArgs e)
try
{
var instanceName = Path.GetFileName(path);
KSP instance = new KSP(path, instanceName, GUI.user);
instanceName = _manager.GetNextValidInstanceName(instanceName);
KSP instance = new KSP(path, instanceName, GUI.user);
_manager.AddInstance(instance);
UpdateInstancesList();
}
Expand Down

0 comments on commit 86bf144

Please sign in to comment.