Skip to content

Commit 380e1e7

Browse files
authored
Fix (?) button opening the link twice (#2664)
1 parent ad37371 commit 380e1e7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: functions/public/Invoke-WPFUIElements.ps1

-7
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,6 @@ function Invoke-WPFUIElements {
304304
$textBlock.ToolTip = $entryInfo.Link
305305
$textBlock.Style = $HoverTextBlockStyle
306306

307-
# Add event handler for click to open link
308-
$handler = [System.Windows.Input.MouseButtonEventHandler]{
309-
param($sender, $e)
310-
Start-Process $sender.ToolTip.ToString()
311-
}
312-
$textBlock.AddHandler([Windows.Controls.TextBlock]::MouseLeftButtonUpEvent, $handler)
313-
314307
$horizontalStackPanel.Children.Add($textBlock) | Out-Null
315308

316309
$sync[$textBlock.Name] = $textBlock

0 commit comments

Comments
 (0)