Skip to content

Commit

Permalink
clear seed value when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepeybunney committed Feb 13, 2021
1 parent 6a5e1fd commit 1b2854b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Maelstrom/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ private void OnLoadHistory(object sender, RoutedEventArgs e)

private async void OnGo(object sender, RoutedEventArgs e)
{
// clear seed value if not fixed
if (SeedFixedBox.IsChecked != true)
{
SeedValueBox.Text = "";
SeedValueBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
}

var dialog = await this.ShowProgressAsync(Environment.NewLine + "Saving data", "Do not remove the Controller," + Environment.NewLine + "MEMORY CARDs, or open disc cover.");
dialog.SetIndeterminate();
await Task.Run(Randomizer.Go);
Expand Down

0 comments on commit 1b2854b

Please sign in to comment.