From f42ddef3e7323cb9daa6341cf3765a358f2b5cce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:57:41 +0000 Subject: [PATCH] GUI: move DoubleTapped handler from guild list to channel tree view Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- .../Views/Components/DashboardView.axaml | 2 +- .../Views/Components/DashboardView.axaml.cs | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) 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; }