Skip to content

Commit

Permalink
Fix profile creation not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jan 16, 2025
1 parent 8f782d9 commit ec04760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JL.Windows/GUI/AddProfileWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private async void SaveButton_Click(object sender, RoutedEventArgs e)

string profileName = ProfileNameTextBox.Text.Trim();
if (string.IsNullOrWhiteSpace(profileName)
|| profileName.Length < 128
|| profileName.Length > 128
|| profileName.IndexOfAny(Path.GetInvalidFileNameChars()) >= 0)
{
ProfileNameTextBox.BorderBrush = Brushes.Red;
Expand Down

0 comments on commit ec04760

Please sign in to comment.