From 628d571d5e688d43ea0d43a65d138928cf4ecfdf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:28:28 +0000 Subject: [PATCH] GUI: check SelectedChannels in double-tap handler instead of AvailableChannels Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- .../Views/Components/DashboardView.axaml.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs index eec78fd0..4a35263e 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs @@ -25,16 +25,12 @@ public partial class DashboardView : UserControl private void AvailableGuildsListBox_OnDoubleTapped(object? sender, TappedEventArgs args) { - // Only works when there is exactly one non-category, child-less channel if ( - DataContext.AvailableChannels is not { Count: 1 } - || DataContext.AvailableChannels[0].Channel.IsCategory - || DataContext.AvailableChannels[0].Children.Count != 0 + DataContext.SelectedChannels is not { Count: 1 } + || DataContext.SelectedChannels[0].Channel.IsCategory ) return; - DataContext.SelectedChannels.Clear(); - DataContext.SelectedChannels.Add(DataContext.AvailableChannels[0]); DataContext.ExportCommand.Execute(null); }