This commit is contained in:
Tyrrrz
2024-11-06 19:36:34 +02:00
parent 789e5af8ba
commit 1fb6156187
15 changed files with 47 additions and 43 deletions

View File

@@ -28,7 +28,9 @@ public partial class DashboardView : UserControl<DashboardViewModel>
)
{
// Hack: unselect categories because they cannot be exported
foreach (var item in args.AddedItems.OfType<ChannelNode>().Where(x => x.Channel.IsCategory))
foreach (
var item in args.AddedItems.OfType<ChannelConnection>().Where(x => x.Channel.IsCategory)
)
{
if (AvailableChannelsTreeView.TreeContainerFromItem(item) is TreeViewItem container)
container.IsSelected = false;