diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml index a9524d39..a35a2a77 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml @@ -100,7 +100,6 @@ BorderThickness="0,0,1,0"> SelectionChangedEventArgs args ) => DataContext.PullChannelsCommand.Execute(null); - private void AvailableGuildsListBox_OnDoubleTapped(object? sender, TappedEventArgs args) + private void AvailableChannelsTreeView_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 }) + // Ensure the tap was on an actual channel item, not empty space in the tree + if (args.Source is not Control { DataContext: ChannelConnection channelConnection }) { return; } - if ( - DataContext.SelectedChannels is not { Count: 1 } - || DataContext.SelectedChannels[0].Channel.IsCategory - ) + if (channelConnection.Channel.IsCategory) { return; }