diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs index 4a35263e..ddbe7051 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs @@ -25,11 +25,19 @@ public partial class DashboardView : UserControl private void AvailableGuildsListBox_OnDoubleTapped(object? sender, TappedEventArgs args) { + // Ensure the tap was on an actual guild item, not empty space in the list + if (args.Source is not Control { DataContext: Guild }) + { + return; + } + if ( DataContext.SelectedChannels is not { Count: 1 } || DataContext.SelectedChannels[0].Channel.IsCategory ) + { return; + } DataContext.ExportCommand.Execute(null); }