mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-29 01:07:47 +00:00
Clean up last PR
This commit is contained in:
@@ -23,21 +23,6 @@ public partial class DashboardView : UserControl<DashboardViewModel>
|
|||||||
SelectionChangedEventArgs args
|
SelectionChangedEventArgs args
|
||||||
) => DataContext.PullChannelsCommand.Execute(null);
|
) => 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(
|
private void AvailableChannelsTreeView_OnSelectionChanged(
|
||||||
object? sender,
|
object? sender,
|
||||||
SelectionChangedEventArgs args
|
SelectionChangedEventArgs args
|
||||||
@@ -52,4 +37,12 @@ public partial class DashboardView : UserControl<DashboardViewModel>
|
|||||||
container.IsSelected = false;
|
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