From 341ecf3775b24ffc5670be9008b107fffefad385 Mon Sep 17 00:00:00 2001 From: ike709 Date: Mon, 25 Dec 2023 22:25:22 -0700 Subject: [PATCH] Fix canceling the replay file dialog causing a crash --- SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs b/SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs index 6995eb60..97719b72 100644 --- a/SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs +++ b/SS14.Launcher/Views/MainWindowTabs/HomePageView.xaml.cs @@ -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];