mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-31 09:33:03 -06:00
Clean up last PR
This commit is contained in:
parent
5e39611395
commit
c9f152773a
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue