mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-15 19:32:31 +00:00
Clean up last PR
This commit is contained in:
@@ -23,21 +23,6 @@ public partial class DashboardView : UserControl<DashboardViewModel>
|
||||
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<DashboardViewModel>
|
||||
container.IsSelected = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void ChannelGrid_OnDoubleTapped(object? sender, TappedEventArgs args)
|
||||
{
|
||||
if (DataContext.SelectedChannels.Count != 1)
|
||||
return;
|
||||
|
||||
DataContext.ExportCommand.Execute(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user