Skip to content

Commit

Permalink
Fix canceling the replay file dialog causing a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 committed Dec 26, 2023
1 parent c2bf8ff commit 341ecf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private async void OpenReplayClicked(object? sender, RoutedEventArgs e)
};

var result = await dialog.ShowAsync(window);
if (result == null)
if (result == null || result.Length == 0) // Canceled
return;

var file = result[0];
Expand Down

0 comments on commit 341ecf3

Please sign in to comment.