Skip to content

Commit

Permalink
Now trimming trailing spaces from VM name
Browse files Browse the repository at this point in the history
Fixes issue #127
Also updated copyright year to 2024
  • Loading branch information
daviunic committed Jun 27, 2024
1 parent f7bc5ae commit ce6e51b
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 79 deletions.
2 changes: 1 addition & 1 deletion 86BoxManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("David Simunič and others")]
[assembly: AssemblyProduct("86Box Manager")]
[assembly: AssemblyCopyright("Copyright © 2018-2023 David Simunič and others")]
[assembly: AssemblyCopyright("Copyright © 2018-2024 David Simunič and others")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
3 changes: 2 additions & 1 deletion 86BoxManager/dlgAddVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private void btnAdd_Click(object sender, EventArgs e)
}
else
{
main.VMAdd(txtName.Text, txtDescription.Text, cbxOpenCFG.Checked, cbxStartVM.Checked);
//TrimEnd() needed to trim the trailing spaces, because they can cause problems with the VM folder in Windows...
main.VMAdd(txtName.Text.TrimEnd(), txtDescription.Text, cbxOpenCFG.Checked, cbxStartVM.Checked);
}
Close();
}
Expand Down
Loading

0 comments on commit ce6e51b

Please sign in to comment.