From c9f152773ac9de5af05d6f37f5e64b532942b804 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:12:27 +0200 Subject: [PATCH] Clean up last PR --- .../Views/Components/DashboardView.axaml.cs | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs index 9ee315ed..c9135233 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs @@ -23,21 +23,6 @@ public partial class DashboardView : UserControl SelectionChangedEventArgs args ) => DataContext.PullChannelsCommand.Execute(null); - private void ChannelGrid_OnDoubleTapped(object? sender, TappedEventArgs args) - { - if (sender is not Control { DataContext: ChannelConnection channelConnection }) - { - return; - } - - if (channelConnection.Channel.IsCategory) - { - return; - } - - DataContext.ExportCommand.Execute(null); - } - private void AvailableChannelsTreeView_OnSelectionChanged( object? sender, SelectionChangedEventArgs args @@ -52,4 +37,12 @@ public partial class DashboardView : UserControl container.IsSelected = false; } } + + private void ChannelGrid_OnDoubleTapped(object? sender, TappedEventArgs args) + { + if (DataContext.SelectedChannels.Count != 1) + return; + + DataContext.ExportCommand.Execute(null); + } }