Skip to content

Commit 00e9718

Browse files
committed
Enable double-click on leaf node to logs
Thanks @ivan_zlatanov!!
1 parent 007f3df commit 00e9718

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ToolWindows/GHActionsToolWindow.xaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
xmlns:util="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Utilities"
99
xmlns:catalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
1010
xmlns:toolkit="clr-namespace:Community.VisualStudio.Toolkit;assembly=Community.VisualStudio.Toolkit"
11+
xmlns:shell="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
1112
xmlns:resx="clr-namespace:GitHubActionsVS.Resources"
1213
xmlns:emoji="clr-namespace:Emoji.Wpf;assembly=Emoji.Wpf"
1314
xmlns:ivc="clr-namespace:GitHubActionsVS.Converters"
@@ -85,7 +86,13 @@
8586
<ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="5,5,0,0" x:Name="ActionsInfoPanel">
8687
<StackPanel Orientation="Vertical">
8788
<Expander Header="{x:Static resx:UIStrings.HEADER_CURRENT_BRANCH}" x:Name="CurrentBranchExpander" FontWeight="Bold">
88-
<TreeView BorderThickness="0" FontWeight="Normal" PreviewMouseWheel="HandlePreviewMouseWheel" x:Name="tvCurrentBranch" ItemTemplate="{StaticResource TreeViewRunNodeDataTemplate}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
89+
<TreeView BorderThickness="0" FontWeight="Normal" PreviewMouseWheel="HandlePreviewMouseWheel" x:Name="tvCurrentBranch" ItemTemplate="{StaticResource TreeViewRunNodeDataTemplate}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
90+
<TreeView.Resources>
91+
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource {x:Static shell:VsResourceKeys.ThemedDialogTreeViewItemStyleKey}}">
92+
<EventSetter Event="MouseDoubleClick" Handler="JobItem_MouseDoubleClick"/>
93+
</Style>
94+
</TreeView.Resources>
95+
</TreeView>
8996
</Expander>
9097
<Expander Header="{x:Static resx:UIStrings.HEADER_SECRETS}" FontWeight="Bold">
9198
<TreeView BorderThickness="0" PreviewMouseWheel="HandlePreviewMouseWheel" FontWeight="Normal">

0 commit comments

Comments
 (0)